forked from MagicBane/Server
Inlined empty getters
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user