From 779f34cc3717b9d2e5fb6f8551031ea7deaaac4b Mon Sep 17 00:00:00 2001 From: stefvanschie Date: Sun, 1 Dec 2019 01:20:12 +0100 Subject: [PATCH] Fix empty CanPlaceOn tags causing errors (#2713) --- ...4-Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/0304-Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch b/Spigot-Server-Patches/0304-Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch index def9fe6a24..cd1039d1fc 100644 --- a/Spigot-Server-Patches/0304-Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch +++ b/Spigot-Server-Patches/0304-Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch @@ -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);