Browse Source

Increment only when a hotZone is set.

master
MagicBot 2 years ago
parent
commit
2e576b3065
  1. 6
      src/engine/workthreads/HourlyJobThread.java

6
src/engine/workthreads/HourlyJobThread.java

@ -41,12 +41,12 @@ public class HourlyJobThread implements Runnable { @@ -41,12 +41,12 @@ 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
if (ZoneManager.hotZone == null)
ZoneManager.generateAndSetRandomHotzone();
else
ZoneManager.hotZoneCycle = ZoneManager.hotZoneCycle + 1;
if (ZoneManager.hotZoneCycle > Integer.parseInt(ConfigManager.MB_HOTZONE_DURATION.getValue()))

Loading…
Cancel
Save