This commit is contained in:
Anuken
2025-08-14 14:20:37 -04:00
parent 246db930d4
commit f410e24da0
2 changed files with 3 additions and 1 deletions

View File

@@ -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. */

View File

@@ -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