diff options
author | Shane Freeder <[email protected]> | 2023-10-22 19:56:25 +0100 |
---|---|---|
committer | Shane Freeder <[email protected]> | 2023-10-22 19:56:25 +0100 |
commit | 489bff9bbdc4215bd2cbc54d837463c608e7747e (patch) | |
tree | c204a51638c7a4d3b3f4e73d9db8510a637f5c35 | |
parent | 71a1787f6cf34347a8a8e50d9834906ef0edcb27 (diff) | |
download | Paper-489bff9bbdc4215bd2cbc54d837463c608e7747e.tar.gz Paper-489bff9bbdc4215bd2cbc54d837463c608e7747e.zip |
Temp fix for serialisable blockdata
-rw-r--r-- | patches/server/1041-Temp-fix-for-serialisable-blockdata.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/1041-Temp-fix-for-serialisable-blockdata.patch b/patches/server/1041-Temp-fix-for-serialisable-blockdata.patch new file mode 100644 index 0000000000..e1a091cb03 --- /dev/null +++ b/patches/server/1041-Temp-fix-for-serialisable-blockdata.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Shane Freeder <[email protected]> +Date: Sun, 22 Oct 2023 19:56:02 +0100 +Subject: [PATCH] Temp fix for serialisable blockdata + + +diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +index aeca803cc0434d9de9434987d6e43b70353e305b..714bcfffa40d0e876d0cc80acdd6018d41f7d543 100644 +--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java ++++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +@@ -544,7 +544,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta { + this.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 = (CompoundTag) CraftNBTTagConfigSerializer.deserialize(blockData); + } |