Fix Configuration.kt and the GammaBoost feature
This commit is contained in:
parent
f8fbf1eb09
commit
94384561c3
|
@ -72,7 +72,7 @@ object Configuration {
|
||||||
runBlocking {
|
runBlocking {
|
||||||
ClickGui.boxContext {
|
ClickGui.boxContext {
|
||||||
enabledFeatures.putAll(
|
enabledFeatures.putAll(
|
||||||
it.buttons.map { button ->
|
buttons.map { button ->
|
||||||
button.key to button.value.toggled
|
button.key to button.value.toggled
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -25,7 +25,7 @@ object Storage {
|
||||||
newBox("snowy.clickbox.misc").addButtons(
|
newBox("snowy.clickbox.misc").addButtons(
|
||||||
"GammaBoost" to {
|
"GammaBoost" to {
|
||||||
with(Minecraft.getInstance().options) {
|
with(Minecraft.getInstance().options) {
|
||||||
gamma = if (!toggled && gamma != 1400.0) {
|
gamma = if (toggled && gamma != 1400.0) {
|
||||||
oldGamma = gamma
|
oldGamma = gamma
|
||||||
1400.0
|
1400.0
|
||||||
} else oldGamma
|
} else oldGamma
|
||||||
|
|
Loading…
Reference in New Issue