Check that the gamma value isn't equal to or greater than 1400.0

This commit is contained in:
Username404-59 2021-05-08 20:00:14 +02:00
parent bde7884f53
commit e074f54785
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ object Storage {
"GammaBoost" to { "GammaBoost" to {
with(Minecraft.getInstance().options) { with(Minecraft.getInstance().options) {
gamma = if (toggled) { gamma = if (toggled) {
if (gamma != 1400.0) oldGamma = gamma if (gamma >= 1400.0) oldGamma = gamma
1400.0 1400.0
} else oldGamma } else oldGamma
} }