Fall distance is not updated on the last tick of the fall
The updateFallState does not add -y to the fall distance on the last tick of the block, when the player touches the ground, causing the fall distance to be slightly less than it actually is:
protected void updateFallState(double y, boolean onGroundIn, IBlockState state, BlockPos pos) { if (onGroundIn) { if (this.fallDistance > 0.0F) { state.getBlock().onFallenUpon(this.world, pos, this, this.fallDistance); } this.fallDistance = 0.0F; } else if (y < 0.0D) { this.fallDistance = (float)((double)this.fallDistance - y); } }
The "else if (y < 0.0D)" should instead be an if statement and moved to the start of the method.
2018-06-01, 11:37 PM
2024-07-29, 05:22 AM
2020-07-21, 12:34 AM
0
1
Minecraft 1.12.2, Minecraft 1.13, Minecraft 18w30a
-