From 2e576b3065f36be1931a158939c3899b4a417cc7 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 22 Feb 2023 17:35:30 -0500 Subject: [PATCH] Increment only when a hotZone is set. --- src/engine/workthreads/HourlyJobThread.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/workthreads/HourlyJobThread.java b/src/engine/workthreads/HourlyJobThread.java index 031cebd8..04538d29 100644 --- a/src/engine/workthreads/HourlyJobThread.java +++ b/src/engine/workthreads/HourlyJobThread.java @@ -41,13 +41,13 @@ public class HourlyJobThread implements Runnable { try { - if (ZoneManager.hotZone == null) - ZoneManager.generateAndSetRandomHotzone(); - // Use the same hotZone this hour up and until // the HotZone_Duration from the ConfigManager - ZoneManager.hotZoneCycle = ZoneManager.hotZoneCycle + 1; + if (ZoneManager.hotZone == null) + ZoneManager.generateAndSetRandomHotzone(); + else + ZoneManager.hotZoneCycle = ZoneManager.hotZoneCycle + 1; if (ZoneManager.hotZoneCycle > Integer.parseInt(ConfigManager.MB_HOTZONE_DURATION.getValue())) ZoneManager.generateAndSetRandomHotzone();