From f6428b885772a0219f555dbe55f7746925482cea Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 5 Dec 2020 16:40:54 -0500 Subject: [PATCH] Fixed #3808 --- core/src/mindustry/core/Logic.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/mindustry/core/Logic.java b/core/src/mindustry/core/Logic.java index cffe8415bf..e468d82d56 100644 --- a/core/src/mindustry/core/Logic.java +++ b/core/src/mindustry/core/Logic.java @@ -243,8 +243,10 @@ public class Logic implements ApplicationListener{ } private void updateWeather(){ + state.rules.weather.removeAll(w -> w.weather == null); for(WeatherEntry entry : state.rules.weather){ + if(entry.weather == null) continue; //update cooldown entry.cooldown -= Time.delta;