Increment only when a hotZone is set.

This commit is contained in:
2023-02-22 17:35:30 -05:00
parent dc23755081
commit 2e576b3065
+4 -4
View File
@@ -41,13 +41,13 @@ public class HourlyJobThread implements Runnable {
try { try {
if (ZoneManager.hotZone == null)
ZoneManager.generateAndSetRandomHotzone();
// Use the same hotZone this hour up and until // Use the same hotZone this hour up and until
// the HotZone_Duration from the ConfigManager // 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())) if (ZoneManager.hotZoneCycle > Integer.parseInt(ConfigManager.MB_HOTZONE_DURATION.getValue()))
ZoneManager.generateAndSetRandomHotzone(); ZoneManager.generateAndSetRandomHotzone();