Separate Command Sending to Separate Thread Pool (#8170)

This commit is contained in:
Owen1212055
2022-08-08 07:32:17 -04:00
parent a7ca38de1f
commit fa737884a7
2 changed files with 30 additions and 11 deletions

View File

@@ -82,7 +82,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
// Paper start - Async command map building
+ new com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent<CommandSourceStack>(player.getBukkitEntity(), (RootCommandNode) rootcommandnode, false).callEvent(); // Paper
MinecraftServer.getServer().execute(() -> {
net.minecraft.server.MinecraftServer.getServer().execute(() -> {
runSync(player, bukkit, rootcommandnode);
});
@@ -0,0 +0,0 @@ public class Commands {