Cleanup & enemy follow commands

This commit is contained in:
Anuken
2022-02-09 17:21:15 -05:00
parent fa79c5e93a
commit 44b37cfe55
3 changed files with 15 additions and 19 deletions
+2 -4
View File
@@ -215,9 +215,7 @@ public class Pathfinder implements Runnable{
return;
}
}catch(Throwable e){
//TODO remove in production!
Threads.throwAppException(e);
//e.printStackTrace();
e.printStackTrace();
}
}
}
@@ -403,7 +401,7 @@ public class Pathfinder implements Runnable{
}
}
//every 100 iterations, check the time spent - this prevents extra calls to nano time, which itself is slow
//every N iterations, check the time spent - this prevents extra calls to nano time, which itself is slow
if(nsToRun >= 0 && (counter++) >= 200){
counter = 0;
if(Time.timeSinceNanos(start) >= nsToRun){