From 81150642f0f8480c7240482fb3d603da3af10ff5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 27 May 2024 20:51:08 -0500 Subject: [PATCH] new maintenance completed --- src/engine/gameManager/MaintenanceManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/MaintenanceManager.java b/src/engine/gameManager/MaintenanceManager.java index 1210f235..2cf3ceaf 100644 --- a/src/engine/gameManager/MaintenanceManager.java +++ b/src/engine/gameManager/MaintenanceManager.java @@ -61,7 +61,7 @@ public enum MaintenanceManager { if(tol == null) continue; - if(tol.maintDateTime.toLocalDate().equals(LocalDateTime.now().toLocalDate())){ + if(tol.maintDateTime.toLocalDate().equals(LocalDateTime.now().toLocalDate()) || LocalDateTime.now().toLocalDate().isAfter(tol.maintDateTime.toLocalDate())){ // today is maintenance day processTolMaintenance(tol, city.getWarehouse()); }