aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0274-Async-command-map-building.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0274-Async-command-map-building.patch')
-rw-r--r--patches/server/0274-Async-command-map-building.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0274-Async-command-map-building.patch b/patches/server/0274-Async-command-map-building.patch
index 6a84bf092e..4de7f1039f 100644
--- a/patches/server/0274-Async-command-map-building.patch
+++ b/patches/server/0274-Async-command-map-building.patch
@@ -53,14 +53,14 @@ index 2008fd542eaf1c2fac776ae1751c227a3b6dde4b..e812cc865baaa1ee03872f7969ee9860
event.getPlayer().getServer().getPluginManager().callEvent(event);
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
-index 2011ffeeee5815f667f585d94c5ffdf52ff94884..7f511a811a73a092ea6a27e4f8afef58dd83b50a 100644
+index a4c897000a5e70e64b5fe4306581b04d8d38bce2..8f427475f7418bbfb8121dbd3e25e7827775ea41 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
-@@ -946,6 +946,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
+@@ -945,6 +945,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
}
MinecraftServer.LOGGER.info("Stopping server");
+ Commands.COMMAND_SENDING_POOL.shutdownNow(); // Paper - Perf: Async command map building; Shutdown and don't bother finishing
- MinecraftTimings.stopServer(); // Paper
// CraftBukkit start
if (this.server != null) {
+ this.server.disablePlugins();