HotZone availability reset at 01am.

This commit is contained in:
MagicBot committed 2023-02-24 00:32:18 -05:00
1 parent 6a948fbe2e
commit 176fdb51da
4 files changed
+34 -5

No files matched your search

@@ -191,6 +191,13 @@ public class HourlyJobThread implements Runnable {
try {
// Reset zone availability at 1am
// or if we run out of hotZones
if (LocalDateTime.now().getHour() == 01 ||
ZoneManager.availableHotZones() == 0)
ZoneManager.resetHotZones();
// Use the same hotZone this hour up and until
// the HotZone_Duration from the ConfigManager