forked from MagicBane/Server
collection of players for cities and mines
This commit is contained in:
@@ -986,7 +986,7 @@ public class City extends AbstractWorldObject {
|
||||
|
||||
// Gather current list of players within the zone bounds
|
||||
|
||||
currentPlayers = WorldGrid.getObjectsInRangePartial(this.location, CityBoundsType.ZONE.extents, MBServerStatics.MASK_PLAYER);
|
||||
currentPlayers = WorldGrid.getObjectsInRangePartial(this.location, CityBoundsType.ZONE.extents * 2, MBServerStatics.MASK_PLAYER);
|
||||
currentMemory = new HashSet<>();
|
||||
|
||||
for (AbstractWorldObject playerObject : currentPlayers) {
|
||||
@@ -1025,7 +1025,7 @@ public class City extends AbstractWorldObject {
|
||||
} catch (Exception e) {
|
||||
Logger.error(e.getMessage());
|
||||
}
|
||||
|
||||
PowersManager.applyZergBuff(this);
|
||||
}
|
||||
|
||||
private void onExit(HashSet<Integer> currentMemory) {
|
||||
@@ -1069,6 +1069,7 @@ public class City extends AbstractWorldObject {
|
||||
if (this.cityOutlaws.contains(removalUUID))
|
||||
this.cityOutlaws.remove(removalUUID);
|
||||
}
|
||||
PowersManager.removeZergBuff(toRemove);
|
||||
}
|
||||
|
||||
public int getWarehouseBuildingID() {
|
||||
|
||||
Reference in New Issue
Block a user