From 664b5fea736841cd7dd9def4ffed6cd4b17ec715 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 16 Apr 2023 19:40:33 -0500 Subject: [PATCH] logger addition for mob --- src/engine/objects/Mob.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index f0eb07b2..41dd8b0e 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -298,10 +298,11 @@ public class Mob extends AbstractIntelligenceAgent { this.equipmentSetID = this.contract.getEquipmentSet(); this.nameOverride = rs.getString("mob_name"); - if (rs.getString("fsm").length() > 1) { + 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 + "");