diff options
author | willkroboth <[email protected]> | 2024-06-17 21:16:55 +0200 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2024-06-17 21:17:51 +0200 |
commit | b3e072a62515d17c9e6c6d0bb844faf6b8770ff2 (patch) | |
tree | dc0008b83958dc4041f76248c98b7fe9ea554ac8 /patches/server/0278-Brigadier-Mojang-API.patch | |
parent | bf8552f0f074e6e3a5151c0c1407041d64399dee (diff) | |
download | Paper-b3e072a62515d17c9e6c6d0bb844faf6b8770ff2.tar.gz Paper-b3e072a62515d17c9e6c6d0bb844faf6b8770ff2.zip |
Fix `hasFiredAsync` parameter when `AsyncPlayerSendCommandsEvent` is called (#10896)
Diffstat (limited to 'patches/server/0278-Brigadier-Mojang-API.patch')
-rw-r--r-- | patches/server/0278-Brigadier-Mojang-API.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/server/0278-Brigadier-Mojang-API.patch b/patches/server/0278-Brigadier-Mojang-API.patch index cd301233eb..d72c59abab 100644 --- a/patches/server/0278-Brigadier-Mojang-API.patch +++ b/patches/server/0278-Brigadier-Mojang-API.patch @@ -102,7 +102,7 @@ index a05aea8561ac102476ee1b3068942b095950a86a..2b5235aea933462ca711abb5b59b6715 private void runSync(ServerPlayer player, Collection<String> bukkit, RootCommandNode<SharedSuggestionProvider> rootcommandnode) { // Paper end - Perf: Async command map building -+ new com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent<CommandSourceStack>(player.getBukkitEntity(), (RootCommandNode) rootcommandnode, false).callEvent(); // Paper - Brigadier API ++ new com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent<CommandSourceStack>(player.getBukkitEntity(), (RootCommandNode) rootcommandnode, true).callEvent(); // Paper - Brigadier API PlayerCommandSendEvent event = new PlayerCommandSendEvent(player.getBukkitEntity(), new LinkedHashSet<>(bukkit)); event.getPlayer().getServer().getPluginManager().callEvent(event); |