Browse Source

Error trap when deranking during maintenance.

magicbox-1.5.2
MagicBot 12 months ago
parent
commit
2bff826a10
  1. 4
      src/engine/gameManager/MaintenanceManager.java

4
src/engine/gameManager/MaintenanceManager.java

@ -59,8 +59,12 @@ public enum MaintenanceManager { @@ -59,8 +59,12 @@ public enum MaintenanceManager {
// Derak or destroy buildings that did not
// have funds available.
try {
for (Building building : derankList)
building.destroyOrDerank(null);
} catch (Exception e) {
Logger.error(e);
}
Logger.info("Structures: " + buildingList.size() + " Maint: " + maintList.size() + " Derank: " + derankList.size());
}

Loading…
Cancel
Save