Skip to content

Commit

Permalink
Correctly copy alias requirements in command upgrader
Browse files Browse the repository at this point in the history
Fixes NPE when converting namespaced commands.

Since the brigadier command api, more aliased commands
(namespaced variants) are registered in the vanilla dispatcher,
which made this issue more apparent.

(cherry picked from commit 99f73e5)
  • Loading branch information
jpenilla authored and mworzala committed Jun 13, 2024
1 parent 80e959b commit 350d764
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private CommandArgumentUpgrader(
new LiteralCommandNode<>(
redirectNode.getName(),
null,
null,
toNode.getRequirement(),
toNode,
redirectNode.getRedirectModifier(),
redirectNode.isFork()
Expand Down

0 comments on commit 350d764

Please sign in to comment.