From 3c256b8c8469dd02b5a7c8db258693daacb6d339 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 27 Jun 2016 11:25:49 +1000 Subject: [PATCH] SPIGOT-2456: Don't wipe tiles if type is still the same By: md_5 --- .../src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index ed7e76ffa..3239c06d3 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/paper-server/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) { + if (type != 0 && type != getTypeId()) { chunk.getHandle().getWorld().setTypeAndData(position, Blocks.AIR.getBlockData(), 0); }