Browse Source

bane mechanic thread

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
1aba8dfb11
  1. 7
      src/engine/workthreads/BaneThread.java

7
src/engine/workthreads/BaneThread.java

@ -53,12 +53,13 @@ public class BaneThread implements Runnable { @@ -53,12 +53,13 @@ public class BaneThread implements Runnable {
public void run() {
lastRun = System.currentTimeMillis();
while (true) {
if(lastRun + instancedelay < System.currentTimeMillis())
if (System.currentTimeMillis() >= lastRun + instancedelay) { // Correct condition
this.processBanesWindow();
lastRun = System.currentTimeMillis();
lastRun = System.currentTimeMillis(); // Update lastRun after processing
}
}
}
public static void startBaneThread() {
Thread baneThread;

Loading…
Cancel
Save