From 3c118ed88b99aa7d46da9e49728f2123fb28b790 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 16 Apr 2023 19:29:14 -0500 Subject: [PATCH] unecessary try removal --- src/engine/objects/Mob.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index dda289b7..f0eb07b2 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -298,13 +298,11 @@ public class Mob extends AbstractIntelligenceAgent { this.equipmentSetID = this.contract.getEquipmentSet(); this.nameOverride = rs.getString("mob_name"); - try { if (rs.getString("fsm").length() > 1) { this.BehaviourType = MobileFSM.MobBehaviourType.valueOf(rs.getString("fsm")); + } else { + this.BehaviourType = MobileFSM.MobBehaviourType.None; } - }catch(Exception ex) { - this.BehaviourType = MobileFSM.MobBehaviourType.None; - } } catch (Exception e) { Logger.error(currentID + ""); }