|
|
|
@ -47,7 +47,7 @@ public class UpdateThread implements Runnable {
@@ -47,7 +47,7 @@ public class UpdateThread implements Runnable {
|
|
|
|
|
while (true) { |
|
|
|
|
try { |
|
|
|
|
this.processPlayerUpdate(); |
|
|
|
|
Thread.sleep(1000); // Pause for 1000ms to reduce CPU usage
|
|
|
|
|
Thread.sleep(100); // Pause for 100ms to reduce CPU usage
|
|
|
|
|
} catch (InterruptedException e) { |
|
|
|
|
Logger.error("Thread interrupted", e); |
|
|
|
|
} |
|
|
|
|