mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 06:02:12 -07:00
Properly pass requirement on namespaced redirects (#10701)
This commit is contained in:
@@ -2047,6 +2047,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ this.dispatcher.register(
|
+ this.dispatcher.register(
|
||||||
+ com.mojang.brigadier.builder.LiteralArgumentBuilder.<CommandSourceStack>literal("minecraft:" + node.getName())
|
+ com.mojang.brigadier.builder.LiteralArgumentBuilder.<CommandSourceStack>literal("minecraft:" + node.getName())
|
||||||
+ .executes(node.getCommand())
|
+ .executes(node.getCommand())
|
||||||
|
+ .requires(node.getRequirement())
|
||||||
+ .redirect(node)
|
+ .redirect(node)
|
||||||
+ );
|
+ );
|
||||||
+ }
|
+ }
|
||||||
|
Reference in New Issue
Block a user