Remove unnecessary synchronization

This commit is contained in:
TheMode 2021-04-25 09:33:52 +02:00
parent 2713650b23
commit 8e642b9116

View File

@ -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);