diff --git a/src/engine/objects/Zone.java b/src/engine/objects/Zone.java index 60ee12c0..a63ac369 100644 --- a/src/engine/objects/Zone.java +++ b/src/engine/objects/Zone.java @@ -28,7 +28,7 @@ import java.util.Collections; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -public class Zone extends AbstractGameObject { +public class Zone extends AbstractWorldObject { public final Set zoneBuildingSet = Collections.newSetFromMap(new ConcurrentHashMap<>()); public final Set zoneNPCSet = Collections.newSetFromMap(new ConcurrentHashMap<>()); @@ -128,8 +128,8 @@ public class Zone extends AbstractGameObject { this.max_level = parentZone.max_level; } - if (parentZone != null) - parentZone.addNode(this); + if (parentZone != null) + parentZone.addNode(this); // If zone doesn't yet hava a hash then write it back to the zone table @@ -138,6 +138,11 @@ public class Zone extends AbstractGameObject { } + @Override + public void runAfterLoad() { + + } + public static void serializeForClientMsg(Zone zone, ByteBufferWriter writer) { if (zone.template == 0 && zone.playerCityUUID == 0)