forked from MagicBane/Server
Cleanup work.
This commit is contained in:
@@ -121,8 +121,8 @@ public enum ZoneManager {
|
||||
public static void resetHotZones() {
|
||||
|
||||
for (Zone zone : ZoneManager.macroZones)
|
||||
if (zone.hasBeenHotzone)
|
||||
zone.hasBeenHotzone = false;
|
||||
if (zone.wasHotzonw)
|
||||
zone.wasHotzonw = false;
|
||||
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ public enum ZoneManager {
|
||||
|
||||
ZoneManager.hotZone = zone;
|
||||
ZoneManager.hotZoneCycle = 1; // Used with HOTZONE_DURATION from config.
|
||||
zone.hasBeenHotzone = true;
|
||||
zone.wasHotzonw = true;
|
||||
ZoneManager.hotZoneLastUpdate = LocalDateTime.now().withMinute(0).withSecond(0).atZone(ZoneId.systemDefault()).toInstant();
|
||||
|
||||
}
|
||||
@@ -242,7 +242,7 @@ public enum ZoneManager {
|
||||
|
||||
//no duplicate hotZones
|
||||
|
||||
if (zone.hasBeenHotzone == true)
|
||||
if (zone.wasHotzonw == true)
|
||||
return false;
|
||||
|
||||
// Enforce min level
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Zone extends AbstractWorldObject {
|
||||
public float absZ = 0.0f;
|
||||
public int min_level;
|
||||
public int max_level;
|
||||
public boolean hasBeenHotzone = false;
|
||||
public boolean wasHotzonw = false;
|
||||
public ArrayList<Zone> nodes = new ArrayList<>();
|
||||
public int parentZoneID;
|
||||
public Zone parent = null;
|
||||
|
||||
Reference in New Issue
Block a user