From 861ba7b0e949078695f3636d984e42d7ef94f724 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 26 Jun 2016 12:31:24 +1000 Subject: [PATCH] Fix air setting block updates By: md_5 --- .../main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 4 +++- 1 file changed, 3 insertions(+), 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 a5d6f1d2d8..70099480cd 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,9 @@ 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 - chunk.getHandle().getWorld().setTypeAndData(position, Blocks.AIR.getBlockData(), 0); + if (type != 0) { + chunk.getHandle().getWorld().setTypeAndData(position, Blocks.AIR.getBlockData(), 0); + } if (applyPhysics) { return chunk.getHandle().getWorld().setTypeAndData(position, blockData, 3);