From 6306a483e0b9de0b26e16d86e796e4914e50b831 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 24 Jul 2017 07:07:51 +1200 Subject: [PATCH] Fix Paper deciding that old versions of the server need to send new stuff to the client --- .../libraryaddict/disguise/utilities/ReflectionManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java index 46df54d5..e5a91a6b 100644 --- a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java +++ b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java @@ -862,10 +862,13 @@ public class ReflectionManager { } if (serializer == null) { + if (value.getClass().getSimpleName().equals("NBTTagCompound")) + return null; // Handle PaperSpigot's bad coding + throw new IllegalArgumentException("Unable to find Serializer for " + value + ( value instanceof Optional && ((Optional) value).isPresent() ? " (" + ((Optional) value).get().getClass().getName() + ")" : - value instanceof Optional || value == null ? "" : value.getClass() + value instanceof Optional || value == null ? "" : " " + value.getClass() .getName()) + "! Are you running " + "the latest " + "version of " + "ProtocolLib?"); }