3arthqu4ke / 3arthh4ck

Utility mod and proxy server for 1.12.2
https://3arthqu4ke.github.io/3arthh4ck/
MIT License
209 stars 53 forks source link

Fullbright bugfix #344

Closed vadiscode closed 1 year ago

vadiscode commented 2 years ago

with gamma mode, the gamma value did not return to the standard

vadiscode commented 2 years ago

i think its better to save the previous value of gamma and then just use it

private float previousGamma;

@Override
protected void onEnable() {
    this.previousGamma = mc.gameSettings.gammaSetting;
}

@Override
protected void onDisable() {
    mc.gameSettings.gammaSettings = this.previousGamma;
}

Great solution!