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 4a790d0..78a84aa 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt @@ -25,8 +25,8 @@ object Storage { newBox("snowy.clickbox.misc").addButtons( "GammaBoost" to { with(Minecraft.getInstance().options) { - gamma = if (toggled && gamma != 1400.0) { - oldGamma = gamma + gamma = if (toggled) { + if (gamma != 1400.0) oldGamma = gamma 1400.0 } else oldGamma }