mobbase.fsm should never be blank.

This commit is contained in:
2023-04-23 12:03:46 -04:00
parent 4adfbc0723
commit 4462e34ca4
2 changed files with 3 additions and 10 deletions
+2 -1
View File
@@ -89,7 +89,8 @@ public class MobBase extends AbstractGameObject {
this.defenseRating = rs.getInt("defense");
this.attackRange = rs.getFloat("attackRange");
this.bootySet = rs.getInt("bootySet");
this.fsm = Enum.MobBehaviourType.getByName(rs.getString("fsm"));
this.fsm = Enum.MobBehaviourType.valueOf(rs.getString("fsm"));
if (MobbaseGoldEntry.MobbaseGoldMap.containsKey(this.loadID)){
MobbaseGoldEntry goldEntry = MobbaseGoldEntry.MobbaseGoldMap.get(this.loadID);