diff --git a/gradle.properties b/gradle.properties index 0482f6f..554a8a8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ modrinth_version=2.8.7 github_api_version=1.314 # Mod Properties -mod_version=2.4-BETA+1.20 +mod_version=2.4.1-BETA+1.20 maven_group=io.github.lucaargolo # Fabric Properties diff --git a/src/main/java/io/github/lucaargolo/seasons/FabricSeasons.java b/src/main/java/io/github/lucaargolo/seasons/FabricSeasons.java index a70cb76..1bbed9f 100644 --- a/src/main/java/io/github/lucaargolo/seasons/FabricSeasons.java +++ b/src/main/java/io/github/lucaargolo/seasons/FabricSeasons.java @@ -370,42 +370,42 @@ public static Pair getSeasonWeather(Season season, Identifier bi }else if(temp <= -0.51) { //Permanently Frozen Biomes return switch (season) { - case SPRING -> new Pair<>(hasPrecipitation, temp - 0.3f); + case SPRING -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp - 0.3f) : new Pair<>(hasPrecipitation, temp); case SUMMER -> new Pair<>(hasPrecipitation, temp + 0.84f); case WINTER -> new Pair<>(hasPrecipitation, temp - 0.7f); - default -> new Pair<>(hasPrecipitation, temp); + case FALL -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp) : new Pair<>(hasPrecipitation, temp - 0.3f); }; }else if(temp <= 0.15) { //Usually Frozen Biomes return switch (season) { - case SPRING -> new Pair<>(hasPrecipitation, temp - 0.25f); + case SPRING -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp - 0.25f) : new Pair<>(hasPrecipitation, temp); case SUMMER -> new Pair<>(hasPrecipitation, temp + (CONFIG.shouldSnowyBiomesMeltInSummer() ? 0.66f : 0f)); case WINTER -> new Pair<>(hasPrecipitation, temp - 0.75f); - default -> new Pair<>(hasPrecipitation, temp); + case FALL -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp) : new Pair<>(hasPrecipitation, temp - 0.25f); }; }else if(temp <= 0.49) { //Temparate Biomes return switch (season) { - case SPRING -> new Pair<>(hasPrecipitation, temp - 0.16f); + case SPRING -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp - 0.16f) : new Pair<>(hasPrecipitation, temp); case SUMMER -> new Pair<>(hasPrecipitation, temp + 0.66f); case WINTER -> new Pair<>(hasPrecipitation, temp - 0.8f); - default -> new Pair<>(hasPrecipitation, temp); + case FALL -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp) : new Pair<>(hasPrecipitation, temp - 0.16f); }; }else if(temp <= 0.79) { //Usually Ice Free Biomes return switch (season) { - case SPRING -> new Pair<>(hasPrecipitation, temp - 0.34f); + case SPRING -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp - 0.34f) : new Pair<>(hasPrecipitation, temp); case SUMMER -> new Pair<>(hasPrecipitation, temp + 0.46f); case WINTER -> new Pair<>(hasPrecipitation, temp - 0.56f); - default -> new Pair<>(hasPrecipitation, temp); + case FALL -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp) : new Pair<>(hasPrecipitation, temp - 0.34f); }; }else{ // Ice Free Biomes return switch (season) { - case SPRING -> new Pair<>(hasPrecipitation, temp - 0.34f); + case SPRING -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp - 0.34f) : new Pair<>(hasPrecipitation, temp); case SUMMER -> new Pair<>(hasPrecipitation, temp + 0.4f); case WINTER -> new Pair<>(true, temp - 0.64f); - default -> new Pair<>(hasPrecipitation, temp); + case FALL -> CONFIG.isFallAndSpringReversed() ? new Pair<>(hasPrecipitation, temp) : new Pair<>(hasPrecipitation, temp - 0.34f); }; } } diff --git a/src/main/java/io/github/lucaargolo/seasons/utils/ModConfig.java b/src/main/java/io/github/lucaargolo/seasons/utils/ModConfig.java index e899dd9..dac0107 100644 --- a/src/main/java/io/github/lucaargolo/seasons/utils/ModConfig.java +++ b/src/main/java/io/github/lucaargolo/seasons/utils/ModConfig.java @@ -61,8 +61,8 @@ private static class SeasonLength { ); private boolean isSeasonTiedWithSystemTime = false; - private boolean isInNorthHemisphere = true; + private boolean isFallAndSpringReversed = false; private boolean isSeasonMessingCrops = true; private boolean isSeasonMessingBonemeal = false; @@ -163,6 +163,10 @@ public boolean isInNorthHemisphere() { return isInNorthHemisphere; } + public boolean isFallAndSpringReversed() { + return isFallAndSpringReversed; + } + public boolean isDebugCommandEnabled() { return debugCommandEnabled; } }