|
|
@ -222,13 +222,15 @@ public enum ZoneManager { |
|
|
|
if (ZoneManager.macroZones.isEmpty()) |
|
|
|
if (ZoneManager.macroZones.isEmpty()) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
for (Zone zone : ZoneManager.macroZones) { |
|
|
|
// Reset hotZone availability if none are left.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ZoneManager.availableHotZones() == 0) |
|
|
|
|
|
|
|
ZoneManager.resetHotZones(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (Zone zone : ZoneManager.macroZones) |
|
|
|
if (validHotZone(zone)) |
|
|
|
if (validHotZone(zone)) |
|
|
|
zoneArray.add(zone.getObjectUUID()); |
|
|
|
zoneArray.add(zone.getObjectUUID()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int entryIndex = ThreadLocalRandom.current().nextInt(zoneArray.size()); |
|
|
|
int entryIndex = ThreadLocalRandom.current().nextInt(zoneArray.size()); |
|
|
|
|
|
|
|
|
|
|
|
hotzone = ZoneManager.getZoneByUUID(zoneArray.get(entryIndex)); |
|
|
|
hotzone = ZoneManager.getZoneByUUID(zoneArray.get(entryIndex)); |
|
|
|