Browse Source

Value cannot be null. Set early in runafterload.

combat-2
MagicBot 1 year ago
parent
commit
a4cab3565a
  1. 8
      src/engine/objects/Mob.java

8
src/engine/objects/Mob.java

@ -560,14 +560,15 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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 { @@ -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() {

Loading…
Cancel
Save