diff options
author | md_5 <git@md-5.net> | 2016-07-08 14:05:22 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-07-08 14:05:22 +1000 |
commit | 02d704b55af439337a63becf23d8a1e05780ef01 (patch) | |
tree | 10ef41e4c1591442e5741ee70e0cd72e2d6861bc | |
parent | 9c02c121791427c4608af3fab36d4c01a4ed8faa (diff) | |
download | craftbukkit-02d704b55af439337a63becf23d8a1e05780ef01.tar craftbukkit-02d704b55af439337a63becf23d8a1e05780ef01.tar.gz craftbukkit-02d704b55af439337a63becf23d8a1e05780ef01.tar.lz craftbukkit-02d704b55af439337a63becf23d8a1e05780ef01.tar.xz craftbukkit-02d704b55af439337a63becf23d8a1e05780ef01.zip |
SPIGOT-2503: Optimize block set
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 3239c06d..88818262 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -137,7 +137,7 @@ public class CraftBlock implements Block { BlockPosition position = new BlockPosition(x, y, z); // SPIGOT-611: need to do this to prevent glitchiness. Easier to handle this here (like /setblock) than to fix weirdness in tile entity cleanup - if (type != 0 && type != getTypeId()) { + if (type != 0 && blockData.getBlock() instanceof BlockTileEntity && type != getTypeId()) { chunk.getHandle().getWorld().setTypeAndData(position, Blocks.AIR.getBlockData(), 0); } |