Inlined empty getters

This commit is contained in:
MagicBot committed 2023-09-20 15:43:01 -04:00
1 parent bf9fdae58b
commit 46b3db033b
58 files changed
+210 -284

No files matched your search

+3 -3
View File
@@ -460,10 +460,10 @@ public class Building extends AbstractWorldObject {
}
}
}
if (this.parentZone.isPlayerCity() == false)
if (this.parentZone.isPlayerCity == false)
return null;
return City.getCity(this.parentZone.getPlayerCityUUID());
return City.getCity(this.parentZone.playerCityID);
}
@@ -1402,7 +1402,7 @@ public class Building extends AbstractWorldObject {
// Buildings on an npc citygrid are never vulnerable
if (this.getCity() != null) {
if (this.getCity().getParent().isNPCCity() == true)
if (this.getCity().getParent().isNPCCity == true)
return false;
}