From a931dcb01f7d0649bd90685a687fbc3ca099d496 Mon Sep 17 00:00:00 2001 From: PinguinLars1105 Date: Thu, 19 Dec 2024 20:02:32 +0100 Subject: [PATCH] Like this? --- src/main/java/com/wildfire/main/WildfireHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/wildfire/main/WildfireHelper.java b/src/main/java/com/wildfire/main/WildfireHelper.java index b8058306..e7847a3f 100644 --- a/src/main/java/com/wildfire/main/WildfireHelper.java +++ b/src/main/java/com/wildfire/main/WildfireHelper.java @@ -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; } }