mobbase.fsm should never be blank.

This commit is contained in:
MagicBot committed 2023-04-23 12:03:46 -04:00
1 parent 4adfbc0723
commit 4462e34ca4
2 files changed
+3 -10

No files matched your search

+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);