From 91e627df6ba1fb507c39f486f28b01dd328ec37b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 1 Sep 2023 14:05:50 -0400 Subject: [PATCH] AI moved to top of runafterload. --- src/engine/objects/Mob.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 4e6e33c5..75704f2e 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1518,6 +1518,8 @@ public class Mob extends AbstractIntelligenceAgent { @Override public void runAfterLoad() { + this.setObjectTypeMask(MBServerStatics.MASK_MOB | this.getTypeMasks()); + this.charItemManager = new CharacterItemManager(this); if (ConfigManager.serverType.equals(ServerType.LOGINSERVER)) @@ -1525,7 +1527,7 @@ public class Mob extends AbstractIntelligenceAgent { this.mobBase = MobBase.getMobBase(loadID); - this.setObjectTypeMask(MBServerStatics.MASK_MOB | this.getTypeMasks()); + this.building = BuildingManager.getBuilding(this.buildingUUID); // Configure AI related values @@ -1550,8 +1552,6 @@ public class Mob extends AbstractIntelligenceAgent { if (this.behaviourType == null) this.behaviourType = MobBehaviourType.None; - this.building = BuildingManager.getBuilding(this.buildingUUID); - if (this.contractUUID == 0) this.contract = null; else