diff --git a/core/src/mindustry/game/Universe.java b/core/src/mindustry/game/Universe.java index 6ec77e62fd..01b1d714b3 100644 --- a/core/src/mindustry/game/Universe.java +++ b/core/src/mindustry/game/Universe.java @@ -82,12 +82,11 @@ public class Universe{ } } - if(state.hasSector() && state.getSector().planet.updateLighting){ - boolean disable = state.getSector().preset != null && state.getSector().preset.noLighting; + if(state.hasSector() && state.getSector().planet.updateLighting && !(state.getSector().preset != null && state.getSector().preset.noLighting)){ var planet = state.getSector().planet; //update sector light float light = state.getSector().getLight(); - float alpha = disable ? 1f : Mathf.clamp(Mathf.map(light, planet.lightSrcFrom, planet.lightSrcTo, planet.lightDstFrom, planet.lightDstTo)); + float alpha = Mathf.clamp(Mathf.map(light, planet.lightSrcFrom, planet.lightSrcTo, planet.lightDstFrom, planet.lightDstTo)); //assign and map so darkness is not 100% dark state.rules.ambientLight.a = 1f - alpha;