optimized mob ai thread
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user