Skip to content

Commit

Permalink
Merge branch '1.20' into 1.20.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	gradle.properties
  • Loading branch information
lucaargolo committed Sep 29, 2024
2 parents e7acc28 + 5ea8657 commit 481f356
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 22 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ modrinth_version=2.8.7
github_api_version=1.314

# Mod Properties
mod_version=2.4-BETA+1.20.2
mod_version=2.4.1-BETA+1.20.2
maven_group=io.github.lucaargolo

# Fabric Properties
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/io/github/lucaargolo/seasons/FabricSeasons.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,42 +370,42 @@ public static Pair<Boolean, Float> 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);
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -163,6 +163,10 @@ public boolean isInNorthHemisphere() {
return isInNorthHemisphere;
}

public boolean isFallAndSpringReversed() {
return isFallAndSpringReversed;
}

public boolean isDebugCommandEnabled() { return debugCommandEnabled; }

}
23 changes: 13 additions & 10 deletions src/main/resources/assets/seasons/lang/ru_ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@
"tooltip.seasons.summer": "Лето",
"tooltip.seasons.fall": "Осень",
"tooltip.seasons.winter": "Зима",
"tooltip.seasons.faster_grow": "Растет быстрее в этом времени года",
"tooltip.seasons.normal_grow": "Нормально растет в этом времени года",
"tooltip.seasons.slowed_grow": "Растет медленнее в этом времени года",
"tooltip.seasons.not_grow": "Не растет в этом этом времени года",
"tooltip.seasons.faster_grow": "Растёт быстрее в этом сезоне",
"tooltip.seasons.normal_grow": "Нормально растёт в этом сезоне",
"tooltip.seasons.slowed_grow": "Растёт медленнее в этом сезоне",
"tooltip.seasons.not_grow": "Не растёт в этом сезоне",
"tooltip.seasons.show_more": "Нажмите %s, чтобы узнать подробности",
"tooltip.seasons.season_delimitator": ": ",
"tooltip.seasons.season_speed": "%s%s%s%% скорости",
"tooltip.seasons.combined_grow": "%s (%s%%)",

"chat.seasons.mod_installed": "Похоже, что вы установили %s!",
"chat.seasons.compatibility": "Установите аддон, чтобы добиться полной совместимости с Fabric Seasons.",
"chat.seasons.mod_not_installed": "Похоже, что у вас нет %s!",
"chat.seasons.mod_installed": "Похоже, у вас установлен %s!",
"chat.seasons.compatibility": "Установите этот аддон и получите полную совместимость с Fabric Seasons.",
"chat.seasons.mod_not_installed": "Похоже, у вас не установлен %s!",
"chat.seasons.extras": "Установите аддон, чтобы улучшить игровой опыт новыми блоками и предметами.",
"chat.seasons.available_at": "Доступен на: ",
"chat.seasons.show_once": "Это сообщение больше не будет показыватся.",
"chat.seasons.show_once": "Это сообщение появится только один раз.",

"commands.seasons.query_1": "Текущее время года: %s.",
"commands.seasons.query_2": "Осталось %s дней (%s тиков) до %s."
"commands.seasons.query_1": "Текущий сезон: %s.",
"commands.seasons.query_2": "Осталось %s дней (%s тактов) до %s."
}

0 comments on commit 481f356

Please sign in to comment.