Browse Source

AI moved to top of runafterload.

feature-workorder
MagicBot 1 year ago
parent
commit
91e627df6b
  1. 6
      src/engine/objects/Mob.java

6
src/engine/objects/Mob.java

@ -1518,6 +1518,8 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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 { @@ -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 { @@ -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

Loading…
Cancel
Save