13
0
geforkt von Mirrors/Paper

Fix air setting block updates

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2016-06-26 12:31:24 +10:00
Ursprung e6584da1b0
Commit 861ba7b0e9

Datei anzeigen

@ -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);