Correctly copy alias requirements in command upgrader

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.
This commit is contained in:
Jason Penilla 2024-05-13 15:55:15 -07:00
parent e5d36081c0
commit 9e0c66cd6c

View file

@ -27842,7 +27842,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ new LiteralCommandNode<>(
+ redirectNode.getName(),
+ null,
+ null,
+ toNode.getRequirement(),
+ toNode,
+ redirectNode.getRedirectModifier(),
+ redirectNode.isFork()