SPIGOT-7502: CraftMetaItem - cannot deserialize BlockStateTag

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2023-10-09 07:16:14 +11:00
parent 0c90514858
commit 7c225da381

View File

@ -481,7 +481,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
setCustomModelData(customModelData);
}
Map blockData = SerializableMeta.getObject(Map.class, map, BLOCK_DATA.BUKKIT, true);
Object blockData = SerializableMeta.getObject(Object.class, map, BLOCK_DATA.BUKKIT, true);
if (blockData != null) {
this.blockData = (NBTTagCompound) CraftNBTTagConfigSerializer.deserialize(blockData);
}