The bug
When you have momentum and go to bed, your player is not well placed.
How to reproduce
Jump, run in all directions and right click on the bed to sleep
Observe how your character is in the bed
Example
Here is an example in video:
Linked issues
is duplicated by 29
relates to 5
Attachments
Comments 19
Not only is my player halfway off the bed, but sometimes one of the arms will be stuck sticking up at an odd angle, like it was frozen in the middle of the walking/sprinting animation.
Any idea of why movement is not just completely removed? It could be easy if something like a minecart or boat interaction happened, where the client knows the player has an anchor or something and it doesn’t move from there.
Can confirm in 26.1-snapshot-4
Jumping even while walking has a substantial effect on the misplacement, it can even get you off the bed for the duration of the sleep if your momentum stops right before you reach the barrier that places you back into the center.
This seems fixed in 26.3 Pre-Release 3, as I can’t replicate it there. It is still an issue in 26.2. Walking, jumping, sprinting, etc straight on or behind the bed mostly functions as normal (only sometimes affecting the misplacement). But from the sides of the bed, it seems to glitch out for a second and the player slides, before quickly correcting itself.
Simpler ways to reproduce:
Walk towards the bed as you enter it and you will slide slightly, becoming misaligned.
Sprint towards the bed as you enter it and you will slide even more.
Sprint towards the side of the bed under the Speed II effect and you will slide out of the bed.
I think the same behavior is what is causing the Villagers to become misaligned when they go to sleep.