From f0f91325ba547055591ee8f9420600703fe0d8c3 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 26 Feb 2023 07:31:26 -0500 Subject: [PATCH] Reset is handled when picking new hotZone. --- src/engine/gameManager/ZoneManager.java | 8 ++++---- src/engine/workthreads/HourlyJobThread.java | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/engine/gameManager/ZoneManager.java b/src/engine/gameManager/ZoneManager.java index 1be004cb..5ac8a055 100644 --- a/src/engine/gameManager/ZoneManager.java +++ b/src/engine/gameManager/ZoneManager.java @@ -216,7 +216,7 @@ public enum ZoneManager { public static final void generateAndSetRandomHotzone() { - Zone hotzone; + Zone hotZone; ArrayList zoneArray = new ArrayList<>(); if (ZoneManager.macroZones.isEmpty()) @@ -233,14 +233,14 @@ public enum ZoneManager { int entryIndex = ThreadLocalRandom.current().nextInt(zoneArray.size()); - hotzone = ZoneManager.getZoneByUUID(zoneArray.get(entryIndex)); + hotZone = ZoneManager.getZoneByUUID(zoneArray.get(entryIndex)); - if (hotzone == null) { + if (hotZone == null) { Logger.error("Hotzone is null"); return; } - ZoneManager.setHotZone(hotzone); + ZoneManager.setHotZone(hotZone); } diff --git a/src/engine/workthreads/HourlyJobThread.java b/src/engine/workthreads/HourlyJobThread.java index f84e6346..dbf17e0c 100644 --- a/src/engine/workthreads/HourlyJobThread.java +++ b/src/engine/workthreads/HourlyJobThread.java @@ -191,11 +191,6 @@ public class HourlyJobThread implements Runnable { try { - // Reset zone availability at 1am - - if (LocalDateTime.now().getHour() == 01) - ZoneManager.resetHotZones(); - // Use the same hotZone this hour up and until // the HotZone_Duration from the ConfigManager