mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
Fix air setting block updates
By: md_5 <git@md-5.net>
This commit is contained in:
parent
e6584da1b0
commit
861ba7b0e9
1 changed files with 3 additions and 1 deletions
|
@ -137,7 +137,9 @@ 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) {
|
||||||
chunk.getHandle().getWorld().setTypeAndData(position, Blocks.AIR.getBlockData(), 0);
|
chunk.getHandle().getWorld().setTypeAndData(position, Blocks.AIR.getBlockData(), 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (applyPhysics) {
|
if (applyPhysics) {
|
||||||
return chunk.getHandle().getWorld().setTypeAndData(position, blockData, 3);
|
return chunk.getHandle().getWorld().setTypeAndData(position, blockData, 3);
|
||||||
|
|
Loading…
Reference in a new issue