Browse Source

Error trap when deranking during maintenance.

magicbox-1.5.2
MagicBot 10 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 {
// Derak or destroy buildings that did not // Derak or destroy buildings that did not
// have funds available. // have funds available.
try {
for (Building building : derankList) for (Building building : derankList)
building.destroyOrDerank(null); building.destroyOrDerank(null);
} catch (Exception e) {
Logger.error(e);
}
Logger.info("Structures: " + buildingList.size() + " Maint: " + maintList.size() + " Derank: " + derankList.size()); Logger.info("Structures: " + buildingList.size() + " Maint: " + maintList.size() + " Derank: " + derankList.size());
} }

Loading…
Cancel
Save