Browse Source

new maintenance completed

lakebane-master
FatBoy-DOTC 5 months ago
parent
commit
81150642f0
  1. 2
      src/engine/gameManager/MaintenanceManager.java

2
src/engine/gameManager/MaintenanceManager.java

@ -61,7 +61,7 @@ public enum MaintenanceManager { @@ -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());
}

Loading…
Cancel
Save