Browse Source

Error trap when deranking during maintenance.

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

8
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.
for (Building building : derankList)
building.destroyOrDerank(null);
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