From 312b8752674466caa838cf3e45ebdbf01a05077c Mon Sep 17 00:00:00 2001 From: Username404 Date: Fri, 28 Apr 2023 20:28:18 +0200 Subject: [PATCH] Supress a warning in GammaBoost.kt Signed-off-by: Username404 --- .../kotlin/fr/username404/snowygui/gui/feature/GammaBoost.kt | 1 + 1 file changed, 1 insertion(+) 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