Skip to content

Commit

Permalink
Fix hasFiredAsync parameter when AsyncPlayerSendCommandsEvent is …
Browse files Browse the repository at this point in the history
…called (#10896)
  • Loading branch information
willkroboth authored and kennytv committed Jun 17, 2024
1 parent bf8552f commit b3e072a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/server/0278-Brigadier-Mojang-API.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b3e072a

Please sign in to comment.