From 8e642b91163006d181a740515d9cf39d5cf57e3b Mon Sep 17 00:00:00 2001 From: TheMode Date: Sun, 25 Apr 2021 09:33:52 +0200 Subject: [PATCH] Remove unnecessary synchronization --- src/main/java/net/minestom/server/thread/TickThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/thread/TickThread.java b/src/main/java/net/minestom/server/thread/TickThread.java index 4531d7abc..d988de2d9 100644 --- a/src/main/java/net/minestom/server/thread/TickThread.java +++ b/src/main/java/net/minestom/server/thread/TickThread.java @@ -85,7 +85,7 @@ public class TickThread extends Thread { } } - public synchronized void startTick(@NotNull CountDownLatch countDownLatch, @NotNull Runnable runnable) { + public void startTick(@NotNull CountDownLatch countDownLatch, @NotNull Runnable runnable) { this.countDownLatch.set(countDownLatch); this.queue.add(runnable); LockSupport.unpark(tickThread);