Fix Paper deciding that old versions of the server need to send new stuff to the client
This commit is contained in:
parent
05134d231d
commit
6306a483e0
@ -862,10 +862,13 @@ public class ReflectionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (serializer == null) {
|
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 + (
|
throw new IllegalArgumentException("Unable to find Serializer for " + value + (
|
||||||
value instanceof Optional && ((Optional) value).isPresent() ?
|
value instanceof Optional && ((Optional) value).isPresent() ?
|
||||||
" (" + ((Optional) value).get().getClass().getName() + ")" :
|
" (" + ((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?");
|
.getName()) + "! Are you running " + "the latest " + "version of " + "ProtocolLib?");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user