13
0
geforkt von Mirrors/Paper

SPIGOT-2503: Optimize block set

Dieser Commit ist enthalten in:
md_5 2016-07-08 14:05:22 +10:00
Ursprung 9c02c12179
Commit 02d704b55a

Datei anzeigen

@ -137,7 +137,7 @@ public class CraftBlock implements Block {
BlockPosition position = new BlockPosition(x, y, z); 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 // 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); chunk.getHandle().getWorld().setTypeAndData(position, Blocks.AIR.getBlockData(), 0);
} }