From 0e2396c22f03d06c34d88748fa28abf6c56af23a Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sat, 27 Dec 2014 22:44:51 +0000 Subject: Remove tile entity tags for signs and command blocks --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaTileEntity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaTileEntity.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaTileEntity.java index 6718f96e..17b913de 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; } -- cgit v1.2.3