From 942c37442e0702c72f652e49a5152f3b4869fd35 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 22 Feb 2025 19:03:47 -0600 Subject: [PATCH] mines run at 1:00 am CST --- src/engine/workthreads/HourlyJobThread.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/engine/workthreads/HourlyJobThread.java b/src/engine/workthreads/HourlyJobThread.java index 118d385d..50b63a26 100644 --- a/src/engine/workthreads/HourlyJobThread.java +++ b/src/engine/workthreads/HourlyJobThread.java @@ -53,10 +53,8 @@ public class HourlyJobThread implements Runnable { Logger.error("missing city map"); } - //run maintenance every day at 2 am - if(LocalDateTime.now().getHour() == 2) { - MaintenanceManager.dailyMaintenance(); - + //run mines every day at 1:00 am CST + if(LocalDateTime.now().getHour() == 1) { //produce mine resources once a day for (Mine mine : Mine.getMines()) { try { @@ -68,6 +66,11 @@ public class HourlyJobThread implements Runnable { } } + //run maintenance every day at 2 am + if(LocalDateTime.now().getHour() == 2) { + MaintenanceManager.dailyMaintenance(); + } + switch(LocalDateTime.now().getHour()){ case 3: case 6: