forked from MagicBane/Server
Error trap when deranking during maintenance.
This commit is contained in:
@@ -45,17 +45,15 @@ 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) {
|
for (Building building : maintList)
|
||||||
|
|
||||||
if (chargeUpkeep(building) == false)
|
if (chargeUpkeep(building) == false)
|
||||||
derankList.add(building);
|
derankList.add(building);
|
||||||
}
|
|
||||||
// Reset maintenance dates for these buildings
|
// Reset maintenance dates for these buildings
|
||||||
|
|
||||||
for (Building building : maintList) {
|
for (Building building : maintList)
|
||||||
setMaintDateTime(building, LocalDateTime.now().plusDays(7));
|
setMaintDateTime(building, LocalDateTime.now().plusDays(7));
|
||||||
|
|
||||||
}
|
|
||||||
// Derak or destroy buildings that did not
|
// Derak or destroy buildings that did not
|
||||||
// have funds available.
|
// have funds available.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user