From 9e0c66cd6c0725a386cbfec8362321ae8fac9107 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Mon, 13 May 2024 15:55:15 -0700 Subject: [PATCH] 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. --- patches/server/Rewrite-dataconverter-system.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Rewrite-dataconverter-system.patch b/patches/server/Rewrite-dataconverter-system.patch index eefbfe9f14..f79f5f5776 100644 --- a/patches/server/Rewrite-dataconverter-system.patch +++ b/patches/server/Rewrite-dataconverter-system.patch @@ -27842,7 +27842,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + new LiteralCommandNode<>( + redirectNode.getName(), + null, -+ null, ++ toNode.getRequirement(), + toNode, + redirectNode.getRedirectModifier(), + redirectNode.isFork()