Skip to content

Commit

Permalink
Trying to get compat with commit 00d3ecd
Browse files Browse the repository at this point in the history
Part 2 of many
  • Loading branch information
PinguinLars authored Dec 24, 2024
1 parent 1d22840 commit 4ef8b50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/wildfire/main/WildfireHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,10 @@ public static String getModVersion(String modId) {
public static boolean onClient() {
return FabricLoader.getInstance().getEnvironmentType() == EnvType.CLIENT;
}

//Returns true when within the Christmas date(s). Taken from the Chest entity renderer
public static boolean isAroundChristmas() {
Calendar calendar = Calendar.getInstance();
return calendar.get(Calendar.MONTH) + 1 == 12 && calendar.get(Calendar.DATE) >= 24 && calendar.get(Calendar.DATE) <= 26;
}
}

0 comments on commit 4ef8b50

Please sign in to comment.