diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt index 3d07baf..5de3e05 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt @@ -72,7 +72,7 @@ object Configuration { runBlocking { ClickGui.boxContext { enabledFeatures.putAll( - it.buttons.map { button -> + buttons.map { button -> button.key to button.value.toggled } ) diff --git a/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt b/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt index b4761ca..c88f255 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt @@ -25,7 +25,7 @@ object Storage { newBox("snowy.clickbox.misc").addButtons( "GammaBoost" to { with(Minecraft.getInstance().options) { - gamma = if (!toggled && gamma != 1400.0) { + gamma = if (toggled && gamma != 1400.0) { oldGamma = gamma 1400.0 } else oldGamma