forked from PaperMC/Paper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71a1787
commit 489bff9
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
patches/server/1041-Temp-fix-for-serialisable-blockdata.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |