1
0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-24 12:39:53 +01:00

Properly pass requirement on namespaced redirects ()

This commit is contained in:
Owen1212055 2024-05-12 02:46:42 -04:00
parent f9008ceb01
commit cde6cb4f28

View File

@ -2047,6 +2047,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ this.dispatcher.register(
+ com.mojang.brigadier.builder.LiteralArgumentBuilder.<CommandSourceStack>literal("minecraft:" + node.getName())
+ .executes(node.getCommand())
+ .requires(node.getRequirement())
+ .redirect(node)
+ );
+ }