forked from MagicBane/Server
Value cannot be null. Set early in runafterload.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user