Merge pull request #3855 from AFFalcons/patch-1

[QOL] Ability to Disable Weather Effects
This commit is contained in:
Anuken
2020-12-11 12:52:07 -05:00
committed by GitHub
3 changed files with 3 additions and 1 deletions

View File

@@ -314,7 +314,7 @@ public class Weather extends UnlockableContent{
@Override
public void draw(){
if(renderer.weatherAlpha() > 0.0001f){
if(renderer.weatherAlpha() > 0.0001f && Core.settings.getBool("showweather")){
Draw.draw(Layer.weather, () -> {
weather.rand.setSeed(0);
Draw.alpha(renderer.weatherAlpha() * opacity * weather.opacityMultiplier);

View File

@@ -404,6 +404,7 @@ public class SettingsMenuDialog extends SettingsDialog{
graphics.checkPref("fps", false);
graphics.checkPref("playerindicators", true);
graphics.checkPref("indicators", true);
graphics.checkPref("showweather", true);
graphics.checkPref("animatedwater", true);
if(Shaders.shield != null){
graphics.checkPref("animatedshields", !mobile);