From da327659022a0dbcc06303e1c3bfe93e8c27f74e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 18 Oct 2023 08:03:47 -0400 Subject: [PATCH] Change to AWO --- src/engine/objects/Zone.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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)