Inlined empty getters
This commit is contained in:
@@ -334,7 +334,7 @@ public class City extends AbstractWorldObject {
|
||||
if (city.noTeleport)
|
||||
continue;
|
||||
|
||||
if (city.parentZone != null && city.parentZone.isPlayerCity()) {
|
||||
if (city.parentZone != null && city.parentZone.isPlayerCity) {
|
||||
|
||||
if (pc.getAccount().status.equals(AccountStatus.ADMIN)) {
|
||||
cities.add(city);
|
||||
@@ -395,7 +395,7 @@ public class City extends AbstractWorldObject {
|
||||
if (city.noRepledge)
|
||||
continue;
|
||||
|
||||
if (city.parentZone != null && city.parentZone.isPlayerCity()) {
|
||||
if (city.parentZone != null && city.parentZone.isPlayerCity) {
|
||||
|
||||
//list Player cities
|
||||
//open city, just list
|
||||
@@ -589,7 +589,7 @@ public class City extends AbstractWorldObject {
|
||||
|
||||
if (zone.getHeightMap() == null && this.isNpc == 1 && this.getObjectUUID() != 1213) {
|
||||
HeightMap.GenerateCustomHeightMap(zone);
|
||||
Logger.info(zone.getName() + " created custom heightmap");
|
||||
Logger.info(zone.zoneName + " created custom heightmap");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Logger.error(e);
|
||||
@@ -791,7 +791,7 @@ public class City extends AbstractWorldObject {
|
||||
// Any players currently in the zone will not be processed by the heartbeat
|
||||
// if it's not the first effect toggled so we do it here manually
|
||||
|
||||
currentPlayers = WorldGrid.getObjectsInRangePartial(this.location, this.parentZone.getBounds().getHalfExtents().x * 1.2f, MBServerStatics.MASK_PLAYER);
|
||||
currentPlayers = WorldGrid.getObjectsInRangePartial(this.location, this.parentZone.bounds.getHalfExtents().x * 1.2f, MBServerStatics.MASK_PLAYER);
|
||||
|
||||
for (AbstractWorldObject playerObject : currentPlayers) {
|
||||
|
||||
@@ -874,7 +874,7 @@ public class City extends AbstractWorldObject {
|
||||
}
|
||||
|
||||
public boolean isLocationOnCityZone(Vector3fImmutable insideLoc) {
|
||||
return Bounds.collide(insideLoc, this.parentZone.getBounds());
|
||||
return Bounds.collide(insideLoc, this.parentZone.bounds);
|
||||
}
|
||||
|
||||
private void applyAllCityEffects(PlayerCharacter player) {
|
||||
|
||||
Reference in New Issue
Block a user