Browse Source

bane mechanic thread

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

4
src/engine/workthreads/BaneThread.java

@ -34,7 +34,7 @@ public class BaneThread implements Runnable {
} }
public static void processBanesWindow() { public void processBanesWindow() {
try { try {
for(int baneId : Bane.banes.keySet()){ for(int baneId : Bane.banes.keySet()){
@ -54,7 +54,7 @@ public class BaneThread implements Runnable {
lastRun = System.currentTimeMillis(); lastRun = System.currentTimeMillis();
while (true) { while (true) {
if(lastRun + instancedelay < System.currentTimeMillis()) if(lastRun + instancedelay < System.currentTimeMillis())
processBanesWindow(); this.processBanesWindow();
lastRun = System.currentTimeMillis(); lastRun = System.currentTimeMillis();
} }

Loading…
Cancel
Save