Browse Source

logger addition for mob

master
FatBoy-DOTC 2 years ago
parent
commit
664b5fea73
  1. 3
      src/engine/objects/Mob.java

3
src/engine/objects/Mob.java

@ -298,10 +298,11 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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 + "");

Loading…
Cancel
Save