Supress a warning in GammaBoost.kt

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2023-04-28 20:28:18 +02:00
parent f8ae9f1ad1
commit 312b875267
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ object GammaBoost: ButtonImpl() {
override fun execAction() { override fun execAction() {
with(Minecraft.getInstance().options) { with(Minecraft.getInstance().options) {
val gamma = gamma().get() val gamma = gamma().get()
@Suppress("KotlinConstantConditions")
(gamma() as OptionValueAccessor).setValue(if (toggled) { (gamma() as OptionValueAccessor).setValue(if (toggled) {
if (gamma < boost) oldGamma = gamma if (gamma < boost) oldGamma = gamma
boost boost