mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +01:00
SPIGOT-7502: CraftMetaItem - cannot deserialize BlockStateTag
By: md_5 <git@md-5.net>
This commit is contained in:
parent
0c90514858
commit
7c225da381
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user