From 6e7633828fe4fef9314b929b038e6c2929496ea5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 23 May 2024 18:01:02 -0500 Subject: [PATCH] new mines system --- src/engine/workthreads/MineThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/workthreads/MineThread.java b/src/engine/workthreads/MineThread.java index 8c953cc9..5aa88a34 100644 --- a/src/engine/workthreads/MineThread.java +++ b/src/engine/workthreads/MineThread.java @@ -114,7 +114,7 @@ public class MineThread implements Runnable { continue; LocalDateTime liveTime = LocalDateTime.now().withHour(mine.liveHour).withMinute(mine.liveMinute).minusMinutes(1); ZonedDateTime localizedTime = convertCSTToLocalTime(liveTime); - if(!mine.isActive) { + if(!mine.isActive && !mine.wasOpened) { if (ZonedDateTime.now().isAfter(localizedTime)) { mineWindowOpen(mine); // mine has not opened today yet, and it is now after the time it should have, open the mine