mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fix air setting block updates
This commit is contained in:
1 parent
4c1e9342cb
commit
568e27fbd0
1 file changed
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user