The bug
Trying to sleep in a bed often can cause the player to fall out of it. The fall direction depends on the layout of the ceiling. One example to reproduce the bug is attached here as a screenshot but there are a lot of different layouts that cause the problem.
The bug is probably caused by some part of the game code thinking the player is still standing (on the bed) and intersecting the ceiling so it tries to move it out there.
Linked issues
is duplicated by 40
relates to 2
Attachments
Comments 52
Played with it. Weird effect! I made a very tall tower with bed with block above it. could sleep in it, but fell off. I feel long way down but didn't stand or even get hurt. But when I woke up, I fell off bed AGAIN but this time died. lol
Other weird effect is that you can sleep while flying. However if this bug happens, you fly off into air. When you wake up, you will fly off again.
same situation in 1.4.6-1.4.7
in multiplay, when i am in bed, it seemed to be nomal by others, but in my sight,
i fall of with heading crossed direction with bed.
also presure plate not activated whenever the player fall.
Confirmed in 1.4.2 pre-release, the player will appear to fall or roll out of bed, as if being pushed out of a block, when they lay in a bed below blocks.