|
|
|
@ -966,19 +966,16 @@ public class Building extends AbstractWorldObject {
@@ -966,19 +966,16 @@ public class Building extends AbstractWorldObject {
|
|
|
|
|
Logger.error("Failed to find Object Type for owner " + this.ownerUUID + " Location " + this.getLoc().toString()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.friends = BuildingManager._buildingFriends.get(this.getObjectUUID()); |
|
|
|
|
// Reference friend and condemn lists from BuildingManager
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
DbManager.BuildingQueries.LOAD_ALL_CONDEMNED_FOR_BUILDING(this); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
Logger.error(this.getObjectUUID() + " failed to load friends/condemned." + e.getMessage()); |
|
|
|
|
} |
|
|
|
|
this.friends = BuildingManager._buildingFriends.get(this.getObjectUUID()); |
|
|
|
|
this.condemned = BuildingManager._buildingCondemned.get(this.getObjectUUID()); |
|
|
|
|
|
|
|
|
|
//LOad Owners in Cache so we do not have to continuely look in the db for owner.
|
|
|
|
|
|
|
|
|
|
if (this.ownerIsNPC) { |
|
|
|
|
if (NPC.getNPC(this.ownerUUID) == null) |
|
|
|
|
Logger.info("Building UID " + this.getObjectUUID() + " Failed to Load NPC Owner with ID " + this.ownerUUID + " Location " + this.getLoc().toString()); |
|
|
|
|
if (NPC.getNPC(this.ownerUUID) == null) |
|
|
|
|
Logger.info("Building UID " + this.getObjectUUID() + " Failed to Load NPC Owner with ID " + this.ownerUUID + " Location " + this.getLoc().toString()); |
|
|
|
|
|
|
|
|
|
} else if (this.ownerUUID != 0) { |
|
|
|
|
if (PlayerCharacter.getPlayerCharacter(this.ownerUUID) == null) { |
|
|
|
|