Browse Source

new maintenance completed

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
d93892df6c
  1. 2
      src/engine/gameManager/MaintenanceManager.java

2
src/engine/gameManager/MaintenanceManager.java

@ -54,7 +54,7 @@ public enum MaintenanceManager {
for (AbstractGameObject ago : worldCities.values()) { for (AbstractGameObject ago : worldCities.values()) {
if (ago.getObjectType().equals(Enum.GameObjectType.City)) { if (ago.getObjectType().equals(Enum.GameObjectType.City)) {
City city = (City) ago; City city = (City) ago;
if(city == null) if(city == null || city.getIsNpcOwned() == 1)
continue; continue;
Building tol = city.getTOL(); Building tol = city.getTOL();

Loading…
Cancel
Save