Fix a condition in the GammaBoost button's action

This commit is contained in:
Username404-59 2021-05-08 19:47:50 +02:00
parent 2edc9158a0
commit 3171b471b0
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ object Storage {
newBox("snowy.clickbox.misc").addButtons(
"GammaBoost" to {
with(Minecraft.getInstance().options) {
gamma = if (toggled && gamma != 1400.0) {
oldGamma = gamma
gamma = if (toggled) {
if (gamma != 1400.0) oldGamma = gamma
1400.0
} else oldGamma
}