diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index e1bfa9d2..bf6cd436 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -77,7 +77,6 @@ public class Mine extends AbstractGameObject { public static ConcurrentHashMap towerMap = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW); private static long lastChange = System.currentTimeMillis(); - public static LocalDateTime effectiveMineDate; /** * ResultSet Constructor @@ -195,11 +194,7 @@ public class Mine extends AbstractGameObject { public static void loadAllMines() { - // Set current mine effective date try{ - - - effectiveMineDate = LocalDateTime.now().withHour(0).withMinute(0).withSecond(0); //Load mine resources MineProduction.addResources(); diff --git a/src/engine/workthreads/HourlyJobThread.java b/src/engine/workthreads/HourlyJobThread.java index 9ea37d97..bce2f4f4 100644 --- a/src/engine/workthreads/HourlyJobThread.java +++ b/src/engine/workthreads/HourlyJobThread.java @@ -55,11 +55,6 @@ public class HourlyJobThread implements Runnable { //updateMines. try { - // Update mine effective date if this is a midnight window - - if (LocalDateTime.now().getHour() == 0 || LocalDateTime.now().getHour() == 24) - Mine.effectiveMineDate = LocalDateTime.now().withHour(0).withMinute(0).withSecond(0); - ArrayList mines = Mine.getMines(); LocalDateTime now = LocalDateTime.now();