Skip to content

Commit

Permalink
Disable all easter eggs
Browse files Browse the repository at this point in the history
CBA to fix issues with them.
  • Loading branch information
modmuss50 authored Nov 30, 2019
1 parent 87d794d commit 4870dfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/vswe/stevescarts/helpers/EventHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public class EventHelper {
private static final long TIME = CALENDAR.getTime().getTime();

public static void setupEvents() {
Constants.isChristmas = SCConfig.enableChristmas && isActive(Calendar.DECEMBER, 1, 31) || SCConfig.persistentChristmas;
Constants.isHalloween = SCConfig.enableHalloween && isActive(Calendar.OCTOBER, 23, 8) || SCConfig.persistentHalloween;
Constants.isEaster = SCConfig.enableEaster && isActive(Calendar.MARCH, 23, 31) || SCConfig.persistentEaster;
Constants.isChristmas = false; //SCConfig.enableChristmas && isActive(Calendar.DECEMBER, 1, 31) || SCConfig.persistentChristmas;
Constants.isHalloween = false; //SCConfig.enableHalloween && isActive(Calendar.OCTOBER, 23, 8) || SCConfig.persistentHalloween;
Constants.isEaster = false; //SCConfig.enableEaster && isActive(Calendar.MARCH, 23, 31) || SCConfig.persistentEaster;
}

private static boolean isActive(int month, int dayOfMonth, int durationDays) {
Expand Down

0 comments on commit 4870dfd

Please sign in to comment.