Browse Source

new mines system

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
ffcaf0e063
  1. 7
      src/engine/workthreads/MineThread.java

7
src/engine/workthreads/MineThread.java

@ -26,9 +26,10 @@ public class MineThread implements Runnable { @@ -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);
}
}
}

Loading…
Cancel
Save