From c17f74546166600bd5456daef0ff0d62a2893876 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 16 Apr 2023 19:45:17 -0500 Subject: [PATCH] moved fsm lookup to runAfterLoad --- src/engine/objects/Mob.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 41dd8b0e..339539e1 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -298,12 +298,6 @@ public class Mob extends AbstractIntelligenceAgent { this.equipmentSetID = this.contract.getEquipmentSet(); this.nameOverride = rs.getString("mob_name"); - if (this.getMobBase().fsm.length() > 1) { - this.BehaviourType = MobileFSM.MobBehaviourType.valueOf(rs.getString("fsm")); - } else { - this.BehaviourType = MobileFSM.MobBehaviourType.None; - Logger.error(this.getName() + " with UUID: " + this.getObjectUUID() + " failed to load a MobBehaviourType"); - } } catch (Exception e) { Logger.error(currentID + ""); } @@ -1993,6 +1987,12 @@ public class Mob extends AbstractIntelligenceAgent { this.patrolPoints.add(newPatrolPoint); } } + if (this.getMobBase().fsm.length() > 1) { + this.BehaviourType = MobileFSM.MobBehaviourType.valueOf(getMobBase().fsm); + } else { + this.BehaviourType = MobileFSM.MobBehaviourType.None; + Logger.error(this.getName() + " with UUID: " + this.getObjectUUID() + " failed to load a MobBehaviourType"); + } } catch (Exception e) { Logger.error(e.getMessage()); }