should never pull directly form cache
This commit is contained in:
1 parent
a487a7bd2f
commit
7ce94a5166
3 files changed
+7
-13
No files matched your search
@@ -807,10 +807,11 @@ public class Building extends AbstractWorldObject {
|
||||
|
||||
if (this.ownerUUID == 0)
|
||||
return null;
|
||||
if (this.ownerIsNPC)
|
||||
return NPC.getFromCache(this.ownerUUID);
|
||||
|
||||
return PlayerCharacter.getFromCache(this.ownerUUID);
|
||||
if (this.ownerIsNPC)
|
||||
return NPC.getNPC(this.ownerUUID);
|
||||
|
||||
return PlayerCharacter.getPlayerCharacter(this.ownerUUID);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user