Fix empty CanPlaceOn tags causing errors (#2713)
This commit is contained in:
parent
2d25b34803
commit
779f34cc37
|
@ -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 New Issue