logger addition for mob

This commit is contained in:
2023-04-16 19:40:33 -05:00
parent 3c118ed88b
commit 664b5fea73
+2 -1
View File
@@ -298,10 +298,11 @@ public class Mob extends AbstractIntelligenceAgent {
this.equipmentSetID = this.contract.getEquipmentSet(); this.equipmentSetID = this.contract.getEquipmentSet();
this.nameOverride = rs.getString("mob_name"); 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")); this.BehaviourType = MobileFSM.MobBehaviourType.valueOf(rs.getString("fsm"));
} else { } else {
this.BehaviourType = MobileFSM.MobBehaviourType.None; this.BehaviourType = MobileFSM.MobBehaviourType.None;
Logger.error(this.getName() + " with UUID: " + this.getObjectUUID() + " failed to load a MobBehaviourType");
} }
} catch (Exception e) { } catch (Exception e) {
Logger.error(currentID + ""); Logger.error(currentID + "");