Supress a warning in GammaBoost.kt
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
f8ae9f1ad1
commit
312b875267
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue