From e119488df5eae5b2394f64ac168a8662cd40227f Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Sat, 4 Dec 2021 02:37:33 +0000 Subject: [PATCH] Do not use ForkJoinPool common exector for creating client command struct (Fixes #6936) --- patches/server/Async-command-map-building.patch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/patches/server/Async-command-map-building.patch b/patches/server/Async-command-map-building.patch index 3942d884c9..aba9712138 100644 --- a/patches/server/Async-command-map-building.patch +++ b/patches/server/Async-command-map-building.patch @@ -21,9 +21,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 // CraftBukkit start // Register Vanilla commands into builtRoot as before + // Paper start - Async command map building -+ java.util.concurrent.ForkJoinPool.commonPool().execute(() -> { -+ sendAsync(player); -+ }); ++ net.minecraft.server.MCUtil.scheduleAsyncTask(() -> this.sendAsync(player)); + } + + private void sendAsync(ServerPlayer player) {