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