optimized mob ai thread

This commit is contained in:
2025-01-18 03:19:08 -06:00
parent e86749febd
commit 99a9cd297c
2 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ public class BaneThread implements Runnable {
lastRun = System.currentTimeMillis(); // Update lastRun after processing
}else {
try {
Thread.sleep(100); // Pause for 10ms to reduce CPU usage
Thread.sleep(100); // Pause for 100ms to reduce CPU usage
} catch (InterruptedException e) {
Logger.error("Thread interrupted", e);
Thread.currentThread().interrupt();