Reset logic moved to within method.

This commit is contained in:
MagicBot committed 2023-02-24 08:34:25 -05:00
1 parent 7a2c0d3456
commit 4422182eae
2 files changed
+6 -6

No files matched your search

+1 -3
View File
@@ -192,10 +192,8 @@ 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)
if (LocalDateTime.now().getHour() == 01)
ZoneManager.resetHotZones();
// Use the same hotZone this hour up and until