forked from MagicBane/Server
mob AI aggro
This commit is contained in:
@@ -50,7 +50,7 @@ public class UpdateThread implements Runnable {
|
|||||||
lastRun = System.currentTimeMillis(); // Update lastRun after processing
|
lastRun = System.currentTimeMillis(); // Update lastRun after processing
|
||||||
}else {
|
}else {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(100); // Pause for 100ms to reduce CPU usage
|
Thread.sleep(1500); // Pause for 1500ms to reduce CPU usage
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Logger.error("Thread interrupted", e);
|
Logger.error("Thread interrupted", e);
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
|
|||||||
Reference in New Issue
Block a user