Fix empty CanPlaceOn tags causing errors (#2713)

This commit is contained in:
stefvanschie 2019-12-01 01:20:12 +01:00 committed by Shane Freeder
parent 2d25b34803
commit 779f34cc37
1 changed files with 1 additions and 1 deletions

View File

@ -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);