diff --git a/common/src/main/java/sereneseasons/config/SeasonsConfig.java b/common/src/main/java/sereneseasons/config/SeasonsConfig.java index f4937ead..c1ca6299 100644 --- a/common/src/main/java/sereneseasons/config/SeasonsConfig.java +++ b/common/src/main/java/sereneseasons/config/SeasonsConfig.java @@ -182,11 +182,11 @@ public static Optional decode(Config config) int minThunderTime = config.getInt("min_thunder_time"); int maxThunderTime = config.getInt("max_thunder_time"); - Preconditions.checkArgument(meltChance < 0.0F || meltChance > 100.0F); + Preconditions.checkArgument(meltChance >= 0.0F && meltChance <= 100.0F); Preconditions.checkArgument(rolls >= 0); Preconditions.checkArgument(biomeTempAdjustment >= -10.0 && biomeTempAdjustment <= 10.0); - Preconditions.checkArgument(minRainTime >= maxRainTime); - Preconditions.checkArgument(minThunderTime >= maxThunderTime); + Preconditions.checkArgument(minRainTime <= maxRainTime); + Preconditions.checkArgument(minThunderTime <= maxThunderTime); return Optional.of(new SeasonProperties(subSeason, meltChance, rolls, biomeTempAdjustment, minRainTime, maxRainTime, minThunderTime, maxThunderTime)); }