Skip to content

Commit a3f247c

Browse files
luigiofthebakeryLulu13022002
authored andcommitted
Fix command-block-overrides from commands.yml
1 parent 0102872 commit a3f247c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paper-server/patches/sources/com/mojang/brigadier/tree/CommandNode.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
+ if (!text.contains(":")) {
4949
+ literal = this.literals.get("minecraft:" + text);
5050
+ }
51-
+ } else if (source instanceof net.minecraft.commands.CommandSourceStack css && css.source instanceof net.minecraft.world.level.BaseCommandBlock) {
51+
+ } else if (source instanceof net.minecraft.commands.CommandSourceStack css && css.source instanceof net.minecraft.world.level.BaseCommandBlock.CloseableCommandBlockSource) {
5252
+ if (css.getServer().server.getCommandBlockOverride(text) && !text.contains(":")) {
5353
+ literal = this.literals.get("minecraft:" + text);
5454
+ }

0 commit comments

Comments
 (0)