summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-12-27 22:44:51 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2014-12-27 22:44:51 +0000
commit0e2396c22f03d06c34d88748fa28abf6c56af23a (patch)
tree6bd8f74d90ff3cc8b0928b3186715ba613e358e4 /src/main/java
parentbd703b831ce480c36236c6a30d4af08b7e33a065 (diff)
downloadcraftbukkit-0e2396c22f03d06c34d88748fa28abf6c56af23a.tar
craftbukkit-0e2396c22f03d06c34d88748fa28abf6c56af23a.tar.gz
craftbukkit-0e2396c22f03d06c34d88748fa28abf6c56af23a.tar.lz
craftbukkit-0e2396c22f03d06c34d88748fa28abf6c56af23a.tar.xz
craftbukkit-0e2396c22f03d06c34d88748fa28abf6c56af23a.zip
Remove tile entity tags for signs and command blocks
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaTileEntity.java5
1 files changed, 4 insertions, 1 deletions
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;
}