mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 15:47:44 +01:00
Fix empty CanPlaceOn tags causing errors (#2713)
This commit is contained in:
parent
2d25b34803
commit
779f34cc37
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ index 6a6b80b5bd..dbb4e5258c 100644
|
|||
+ }
|
||||
+
|
||||
+ private @Nullable Namespaced deserializeNamespaced(String raw) {
|
||||
+ boolean isTag = raw.codePointAt(0) == '#';
|
||||
+ boolean isTag = raw.length() > 0 && raw.codePointAt(0) == '#';
|
||||
+ net.minecraft.server.ArgumentBlock blockParser = new net.minecraft.server.ArgumentBlock(new com.mojang.brigadier.StringReader(raw), true);
|
||||
+ try {
|
||||
+ blockParser = blockParser.parse(false);
|
||||
|
|
Loading…
Reference in a new issue