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