From 0e2396c22f03d06c34d88748fa28abf6c56af23a Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sat, 27 Dec 2014 22:44:51 +0000 Subject: [PATCH] Remove tile entity tags for signs and command blocks --- .../bukkit/craftbukkit/inventory/CraftMetaTileEntity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaTileEntity.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaTileEntity.java index 6718f96e68..17b913deed 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaTileEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaTileEntity.java @@ -20,7 +20,10 @@ public class CraftMetaTileEntity extends CraftMetaItem { super(meta); this.material = material; - if (!(meta instanceof CraftMetaTileEntity) || ((CraftMetaTileEntity) meta).material != material) { + if (!(meta instanceof CraftMetaTileEntity) + || ((CraftMetaTileEntity) meta).material != material + || material == Material.SIGN + || material == Material.COMMAND) { blockEntityTag = null; return; }