Fix Configuration.kt and the GammaBoost feature

This commit is contained in:
Username404-59 2021-05-06 21:13:07 +02:00
parent f8fbf1eb09
commit 94384561c3
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ object Configuration {
runBlocking { runBlocking {
ClickGui.boxContext { ClickGui.boxContext {
enabledFeatures.putAll( enabledFeatures.putAll(
it.buttons.map { button -> buttons.map { button ->
button.key to button.value.toggled button.key to button.value.toggled
} }
) )

View File

@ -25,7 +25,7 @@ object Storage {
newBox("snowy.clickbox.misc").addButtons( newBox("snowy.clickbox.misc").addButtons(
"GammaBoost" to { "GammaBoost" to {
with(Minecraft.getInstance().options) { with(Minecraft.getInstance().options) {
gamma = if (!toggled && gamma != 1400.0) { gamma = if (toggled && gamma != 1400.0) {
oldGamma = gamma oldGamma = gamma
1400.0 1400.0
} else oldGamma } else oldGamma