Sleeping in beds delays fall damage
The Bug:
If a player were to fall from a high distance and enter a bed before hitting the ground, fall damage would only be dealt after exiting the bed.
Steps to Reproduce:
- Build the setup shown in the attachment below. setup.png

- Set the time to "night", stand on the diamond block, and switch into survival mode.
- Jump off the tower but before you hit the ground, quickly enter the bed.
- Take note as to whether or not sleeping in beds delays fall damage.
Observed Behavior:
Fall damage is delayed and instead inflicted when waking up.
Expected Behavior:
Fall damage wouldn't be delayed.
Code Analysis:
Code analysis by FX - PR0CESS can be found in this comment.
2013-06-29, 11:32 PM
2024-12-21, 07:55 AM
25
10
Minecraft 1.6.2 - 1.21.4
Minecraft 1.6.2, Minecraft 1.8.8, Minecraft 1.12, Minecraft 1.13.1, Minecraft 18w43c, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, 1.14.4, 19w38b, 1.15, 1.15.1 Pre-release 1, 1.15.2, 20w22a, 1.16 Pre-release 5, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4, 20w51a, 1.16.5, 21w05b, 21w06a, 21w07a, 1.17, 1.17.1 Pre-release 1, 1.17.1 Pre-release 3, 1.17.1 Release Candidate 1, 1.17.1, 21w38a, 1.18, 1.18.1, 22w05a, 1.18.2 Release Candidate 1, 1.18.2, 22w15a, 1.19, 1.19.1, 1.19.2, 22w43a, 1.19.3, 1.19.4, 1.20, 1.20.1, 24w11a, 1.21, 1.21.1, 24w36a, 1.21.2 Pre-Release 3, 1.21.3, 1.21.4