SPIGOT-2456: Don't wipe tiles if type is still the same

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-06-27 11:25:49 +10:00
parent f155cbbaf2
commit 3c256b8c84

View file

@ -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) {
if (type != 0 && type != getTypeId()) {
chunk.getHandle().getWorld().setTypeAndData(position, Blocks.AIR.getBlockData(), 0);
}