mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 05:41:26 +01:00
Temp fix for serialisable blockdata
This commit is contained in:
parent
44214b0015
commit
69b2101f34
19
patches/server/Temp-fix-for-serialisable-blockdata.patch
Normal file
19
patches/server/Temp-fix-for-serialisable-blockdata.patch
Normal file
@ -0,0 +1,19 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Shane Freeder <theboyetronic@gmail.com>
|
||||
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
@@ -0,0 +0,0 @@ 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user