Probably related to MC-99909
The bug
Being woken up by some damage type prints the following in the log (with [Player] replaced with the name of the sleeping player):
[Server thread/WARN]: [Player] moved wrongly!
Affected damage types
List might be incomplete
- fire
- lava
- poison
- wither
- starvation
Note: It looks like damage dealt by other entities like monsters, arrows or instant damage splash potions does not cause this.
How to reproduce
- Place a bed
- Affect yourself with poison
/effect @s poison 10
- Switch to Survival or Adventure mode and try to sleep in the bed