forked from MagicBane/Server
Error trap added
This commit is contained in:
@@ -45,10 +45,13 @@ public enum MaintenanceManager {
|
|||||||
// Deduct upkeep and build list of buildings
|
// Deduct upkeep and build list of buildings
|
||||||
// which did not have funds available
|
// which did not have funds available
|
||||||
|
|
||||||
for (Building building : maintList)
|
try {
|
||||||
if (chargeUpkeep(building) == false)
|
for (Building building : maintList)
|
||||||
derankList.add(building);
|
if (chargeUpkeep(building) == false)
|
||||||
|
derankList.add(building);
|
||||||
|
} catch (Exception e) {
|
||||||
|
Logger.error(e);
|
||||||
|
}
|
||||||
// Reset maintenance dates for these buildings
|
// Reset maintenance dates for these buildings
|
||||||
|
|
||||||
for (Building building : maintList)
|
for (Building building : maintList)
|
||||||
|
|||||||
Reference in New Issue
Block a user