From e074f54785a66412e431cdee179a89872331b185 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sat, 8 May 2021 20:00:14 +0200 Subject: [PATCH] Check that the gamma value isn't equal to or greater than 1400.0 --- .../main/kotlin/fr/username404/snowygui/misc/addComponents.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 63197f3..db759c0 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/misc/addComponents.kt @@ -26,7 +26,7 @@ object Storage { "GammaBoost" to { with(Minecraft.getInstance().options) { gamma = if (toggled) { - if (gamma != 1400.0) oldGamma = gamma + if (gamma >= 1400.0) oldGamma = gamma 1400.0 } else oldGamma }