diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/GammaBoost.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/GammaBoost.kt index e28fe7f..adb07c9 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/GammaBoost.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/GammaBoost.kt @@ -10,6 +10,7 @@ object GammaBoost: ButtonImpl() { override fun execAction() { with(Minecraft.getInstance().options) { val gamma = gamma().get() + @Suppress("KotlinConstantConditions") (gamma() as OptionValueAccessor).setValue(if (toggled) { if (gamma < boost) oldGamma = gamma boost