From 3534ac6477f68d2980f828a84719b3bfa7cf9ff7 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 23 Aug 2023 12:48:34 -0400 Subject: [PATCH] Starting to whittle away at initmob method. --- src/engine/objects/Mob.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 051f4a9d..cfb71043 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -246,12 +246,6 @@ 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 { @@ -1888,10 +1882,13 @@ public class Mob extends AbstractIntelligenceAgent { NPCManager.slotCharacterInBuilding(this); } + initializeMob(false, false, this.isPlayerGuard); + // Initialize inventory this.charItemManager = new CharacterItemManager(this); this.loadInventory(); + try { if (this.equipmentSetID != 0) this.equip = MobBase.loadEquipmentSet(this.equipmentSetID);