From 3171b471b046c7f431c85937c63702970a29509d Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sat, 8 May 2021 19:47:50 +0200 Subject: [PATCH] Fix a condition in the GammaBoost button's action --- .../main/kotlin/fr/username404/snowygui/misc/addComponents.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }