Skip to content

Commit

Permalink
Like this?
Browse files Browse the repository at this point in the history
  • Loading branch information
PinguinLars committed Dec 19, 2024
1 parent 62d9cd7 commit a931dcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/wildfire/main/WildfireHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ public static boolean onClient() {
//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;
return calendar.get(Calendar.MONTH) == Calendar.DECEMBER && calendar.get(Calendar.DATE) >= 24 && calendar.get(Calendar.DATE) <= 26;
}

//Returns true when in the time the minecraft wiki says that some special things are happening. Taken from the christmas functions
//Returns true when in the time the minecraft wiki says that some special things are happening. Taken from the Christmas functions
public static boolean isAroundHalloween() {
Calendar calendar = Calendar.getInstance();
return calendar.get(Calendar.MONTH) + 1 == 10 && calendar.get(Calendar.DATE) >= 20 ||calendar.get(Calendar.MONTH) + 1 == 11 && calendar.get(Calendar.DATE) <= 3;
return calendar.get(Calendar.MONTH) == Calendar.OCTOBER && calendar.get(Calendar.DATE) >= 20 ||calendar.get(Calendar.MONTH) == Calendar.NOVEMBER && calendar.get(Calendar.DATE) <= 3;
}
}

0 comments on commit a931dcb

Please sign in to comment.