From 964fe7f335c79089d9979d32f27c25126c45a392 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 8 Sep 2024 18:43:47 -0500 Subject: [PATCH] city serilizing bug --- src/engine/server/world/WorldServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index 33422137..f57d2989 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -596,12 +596,16 @@ public class WorldServer { mobs = DbManager.MobQueries.GET_ALL_MOBS_FOR_ZONE(zone); for (Mob m : mobs) { + try{ m.setObjectTypeMask(MBServerStatics.MASK_MOB | m.getTypeMasks()); m.setLoc(m.getLoc()); //ADD GUARDS HERE. if (m.building != null && m.building.getBlueprint() != null && m.building.getBlueprint().getBuildingGroup() == BuildingGroup.BARRACK) DbManager.MobQueries.LOAD_PATROL_POINTS(m); + } catch (Exception e) { + Logger.error(m.getObjectUUID() + " returned an Error Message :" + e.getMessage()); + } } //Handle npc's