mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Do not use ForkJoinPool common exector for creating client command struct (Fixes #6936)
This commit is contained in:
parent
3b65d0e14c
commit
e119488df5
1 changed files with 1 additions and 3 deletions
|
@ -21,9 +21,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
// Register Vanilla commands into builtRoot as before
|
// Register Vanilla commands into builtRoot as before
|
||||||
+ // Paper start - Async command map building
|
+ // Paper start - Async command map building
|
||||||
+ java.util.concurrent.ForkJoinPool.commonPool().execute(() -> {
|
+ net.minecraft.server.MCUtil.scheduleAsyncTask(() -> this.sendAsync(player));
|
||||||
+ sendAsync(player);
|
|
||||||
+ });
|
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ private void sendAsync(ServerPlayer player) {
|
+ private void sendAsync(ServerPlayer player) {
|
||||||
|
|
Loading…
Reference in a new issue