Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion server/player/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,9 @@ func (p *Player) Heal(health float64, source world.HealingSource) {
// updateFallState is called to update the entities falling state.
func (p *Player) updateFallState(distanceThisTick float64) {
switch {
case p.OnGround():
// Require a vertical collision so brushing a block sideways mid-fall does
// not register as landing and deal premature fall damage.
case p.OnGround() && p.collidedVertically:
if p.fallDistance > 0 {
p.fall(p.fallDistance)
p.ResetFallDistance()
Expand Down