|
|
|
@ -26,11 +26,12 @@ public class MineThread implements Runnable {
@@ -26,11 +26,12 @@ public class MineThread implements Runnable {
|
|
|
|
|
public void run() { |
|
|
|
|
LocalDateTime nextPulse = LocalDateTime.now().withMinute(59).minusHours(1); |
|
|
|
|
while (true) { |
|
|
|
|
if(LocalDateTime.now().isAfter(nextPulse)); |
|
|
|
|
if(LocalDateTime.now().isAfter(nextPulse)) { |
|
|
|
|
processMineWindows(); |
|
|
|
|
nextPulse = nextPulse.plusMinutes(30); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void mineWindowOpen(Mine mine) { |
|
|
|
|
|
|
|
|
|