From 094a7a949840b43a6f06e8876c00a91af05cd91a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 27 May 2024 21:00:53 -0500 Subject: [PATCH] new maintenance completed --- src/engine/gameManager/MaintenanceManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/MaintenanceManager.java b/src/engine/gameManager/MaintenanceManager.java index 094acce3..d854dc95 100644 --- a/src/engine/gameManager/MaintenanceManager.java +++ b/src/engine/gameManager/MaintenanceManager.java @@ -172,8 +172,11 @@ public enum MaintenanceManager { setMaintDateTime(tol, tol.maintDateTime.plusDays(1)); //failed to pay maintenance, set next date for tomorrow if(tol.getRank() == 1) destroyAllCityAssets(tol.getCity()); + try { + tol.destroyOrDerank(null); + }catch(Exception e){ - tol.destroyOrDerank(null); + } } public static void destroyAllCityAssets(City city){ if(city == null)