Fixed #11127
This commit is contained in:
@@ -281,7 +281,7 @@ public class Weather extends UnlockableContent{
|
||||
|
||||
public static class WeatherEntry{
|
||||
/** The type of weather used. */
|
||||
public Weather weather;
|
||||
public Weather weather = Weathers.rain;
|
||||
/** Minimum and maximum spacing between weather events. Does not include the time of the event itself. */
|
||||
public float minFrequency, maxFrequency, minDuration, maxDuration;
|
||||
/** Cooldown time before the next weather event takes place This is *state*, not configuration. */
|
||||
|
||||
@@ -463,6 +463,8 @@ public class CustomRulesDialog extends BaseDialog{
|
||||
int cols = Math.max(1, (int)(Core.graphics.getWidth() / Scl.scl(450)));
|
||||
int idx = 0;
|
||||
|
||||
rules.weather.removeAll(w -> w.weather == null);
|
||||
|
||||
for(WeatherEntry entry : rules.weather){
|
||||
base.top();
|
||||
//main container
|
||||
|
||||
Reference in New Issue
Block a user