From 7c225da38140a8f281cd5255ea9492473bdfd9d8 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 9 Oct 2023 07:16:14 +1100 Subject: [PATCH] SPIGOT-7502: CraftMetaItem - cannot deserialize BlockStateTag By: md_5 --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java index 5df9689300..17ceb31e92 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -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); }