Add warning when wrong ItemStackSerializer is used

This commit is contained in:
GeorgH93 2021-11-04 19:22:14 +01:00
parent eba5792d91
commit 97917ad4b9
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -55,6 +55,7 @@ public InventorySerializer(Logger logger)
}
if(serializer == null)
{
logger.severe("NBTItemStackSerializer does not support your Minecraft version!\nFalling back to BukkitItemStackSerializer! This most likely is wrong!");
usedSerializer = 0;
serializer = BUKKIT_ITEM_STACK_SERIALIZER;
}