diff --git a/src/main/java/net/minestom/server/thread/TickThread.java b/src/main/java/net/minestom/server/thread/TickThread.java index 1bb6909f6..475ed636e 100644 --- a/src/main/java/net/minestom/server/thread/TickThread.java +++ b/src/main/java/net/minestom/server/thread/TickThread.java @@ -25,13 +25,10 @@ public final class TickThread extends Thread { @Override public void run() { + LockSupport.park(this); while (!stop) { - final Runnable localRunnable = tickRunnable; - if (localRunnable != null) { - localRunnable.run(); - this.tickRunnable = null; - this.phaser.arriveAndDeregister(); - } + this.tickRunnable.run(); + this.phaser.arriveAndDeregister(); LockSupport.park(this); } }