diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index b25910e4..17e257dd 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -560,14 +560,15 @@ public class Mob extends AbstractIntelligenceAgent { return null; Mob mob = (Mob) DbManager.getFromCache(GameObjectType.Mob, id); + if (mob != null) return mob; + return DbManager.MobQueries.GET_MOB(id); } public static Mob getFromCache(int id) { - return (Mob) DbManager.getFromCache(GameObjectType.Mob, id); } @@ -671,11 +672,8 @@ public class Mob extends AbstractIntelligenceAgent { if (this.agentType.equals(AIAgentType.GUARDMINION)) return this.guardCaptain.contract.getMobbaseID(); - - if (this.mobBase != null) + else return this.mobBase.getObjectUUID(); - - return 0; } public Vector3fImmutable getTrueBindLoc() {