mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 15:12:13 -07:00
#326: Convert BlockMeta to handle older serialized items.
This commit is contained in:
12
nms-patches/DataInspectorBlockEntity.patch
Normal file
12
nms-patches/DataInspectorBlockEntity.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- a/net/minecraft/server/DataInspectorBlockEntity.java
|
||||
+++ b/net/minecraft/server/DataInspectorBlockEntity.java
|
||||
@@ -32,7 +32,8 @@
|
||||
boolean flag;
|
||||
|
||||
if (s1 == null) {
|
||||
- DataInspectorBlockEntity.a.warn("Unable to resolve BlockEntity for ItemInstance: {}", new Object[] { s});
|
||||
+ // CraftBukkit - Remove unnecessary warning (occurs when deserializing a Shulker Box item)
|
||||
+ // DataInspectorBlockEntity.a.warn("Unable to resolve BlockEntity for ItemInstance: {}", new Object[] { s});
|
||||
flag = false;
|
||||
} else {
|
||||
flag = !nbttagcompound2.hasKey("id");
|
Reference in New Issue
Block a user