From 62c7e524878292aa468db2f2f041eb2d8b74f1a4 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 23 Aug 2023 13:01:36 -0400 Subject: [PATCH] Starting to whittle away at initmob method. --- src/engine/objects/Mob.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index cfb71043..87cd5c60 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -246,6 +246,12 @@ public class Mob extends AbstractIntelligenceAgent { Logger.error(e + " " + this.dbID); } + try { + initializeMob(false, false, this.isPlayerGuard); + } catch (Exception e) { + Logger.error("Mobile:" + this.dbID + ": " + e); + } + } public static void serializeMobForClientMsgOtherPlayer(Mob mob, ByteBufferWriter writer) throws SerializationException { @@ -1882,8 +1888,6 @@ public class Mob extends AbstractIntelligenceAgent { NPCManager.slotCharacterInBuilding(this); } - initializeMob(false, false, this.isPlayerGuard); - // Initialize inventory this.charItemManager = new CharacterItemManager(this);