diff --git a/src/main/java/net/minestom/server/UpdateManager.java b/src/main/java/net/minestom/server/UpdateManager.java index 7833ec4eb..37fc0ae7e 100644 --- a/src/main/java/net/minestom/server/UpdateManager.java +++ b/src/main/java/net/minestom/server/UpdateManager.java @@ -8,7 +8,7 @@ import net.minestom.server.instance.InstanceManager; import net.minestom.server.monitoring.TickMonitor; import net.minestom.server.network.ConnectionManager; import net.minestom.server.network.player.NettyPlayerConnection; -import net.minestom.server.thread.PerInstanceThreadProvider; +import net.minestom.server.thread.SingleThreadProvider; import net.minestom.server.thread.ThreadProvider; import net.minestom.server.utils.async.AsyncUtils; import org.jetbrains.annotations.NotNull; @@ -31,19 +31,13 @@ public final class UpdateManager { private volatile boolean stopRequested; - private ThreadProvider threadProvider; + // TODO make configurable + private ThreadProvider threadProvider = new SingleThreadProvider(); private final Queue tickStartCallbacks = Queues.newConcurrentLinkedQueue(); private final Queue tickEndCallbacks = Queues.newConcurrentLinkedQueue(); private final List> tickMonitors = new CopyOnWriteArrayList<>(); - { - // DEFAULT THREAD PROVIDER - threadProvider = new PerInstanceThreadProvider(); - //threadProvider = new PerChunkThreadProvider(); - //threadProvider = new SingleThreadProvider(); - } - /** * Should only be created in MinecraftServer. */