Use of Instant to track hotzone refresh times.

This commit is contained in:
2023-02-22 17:25:48 -05:00
parent 8ae973f5f4
commit dc23755081
6 changed files with 24 additions and 24 deletions
+4 -5
View File
@@ -41,17 +41,17 @@ public class HourlyJobThread implements Runnable {
try {
//no hotzone? set one.
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.hotZoneCycle > Integer.valueOf(ConfigManager.MB_HOTZONE_DURATION.getValue()))
if (ZoneManager.hotZoneCycle > Integer.parseInt(ConfigManager.MB_HOTZONE_DURATION.getValue()))
ZoneManager.generateAndSetRandomHotzone();
if (ZoneManager.hotZone == null) {
Logger.error("Null HotZone returned from ZoneManager");
} else {
@@ -91,7 +91,6 @@ public class HourlyJobThread implements Runnable {
}
}
// Mines can only be claimed once per cycle.
// This will reset at 1am after the last mine
// window closes.