From ffcaf0e063673771e0f94be0e9d5ff22a248298d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 23 May 2024 18:01:59 -0500 Subject: [PATCH] new mines system --- src/engine/workthreads/MineThread.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/workthreads/MineThread.java b/src/engine/workthreads/MineThread.java index 5aa88a34..1b7396fd 100644 --- a/src/engine/workthreads/MineThread.java +++ b/src/engine/workthreads/MineThread.java @@ -26,9 +26,10 @@ public class MineThread implements Runnable { public void run() { LocalDateTime nextPulse = LocalDateTime.now().withMinute(59).minusHours(1); while (true) { - if(LocalDateTime.now().isAfter(nextPulse)); - processMineWindows(); - nextPulse = nextPulse.plusMinutes(30); + if(LocalDateTime.now().isAfter(nextPulse)) { + processMineWindows(); + nextPulse = nextPulse.plusMinutes(30); + } } }