Mojira Archive
MC-19830

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:

  1. Build the setup shown in the attachment below. setup.png
  2. Set the time to "night", stand on the diamond block, and switch into survival mode.
  3. Jump off the tower but before you hit the ground, quickly enter the bed.
  4. 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.