mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-1975: Fix falling blocks when height > 1
By: md_5 <git@md-5.net>
This commit is contained in:
parent
2d394c85d9
commit
c0cd5222ed
1 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,15 @@
|
||||||
this.world.setAir(blockposition);
|
this.world.setAir(blockposition);
|
||||||
} else if (!this.world.isClientSide) {
|
} else if (!this.world.isClientSide) {
|
||||||
this.die();
|
this.die();
|
||||||
|
@@ -84,7 +86,7 @@
|
||||||
|
|
||||||
|
if (BlockFalling.i(this.world.getType(new BlockPosition(this.locX, this.locY - 0.009999999776482582D, this.locZ)))) {
|
||||||
|
this.onGround = false;
|
||||||
|
- return;
|
||||||
|
+ // return; // CraftBukkit
|
||||||
|
}
|
||||||
|
|
||||||
|
this.motX *= 0.699999988079071D;
|
||||||
@@ -93,7 +95,13 @@
|
@@ -93,7 +95,13 @@
|
||||||
if (iblockdata.getBlock() != Blocks.PISTON_EXTENSION) {
|
if (iblockdata.getBlock() != Blocks.PISTON_EXTENSION) {
|
||||||
this.die();
|
this.die();
|
||||||
|
|
Loading…
Reference in a new issue