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
Comments 7
It looks like @unknown is right, it did not appear when a husk attacked me, but appears to depend on the damage type or maybe rather when the damage is taken.
Each damage type kicked me out of the bed, but not all of them generate logs. I tried the following:
Poison:
No logs.
Lava (first test):
[12:07:53 WARN]: Hwo moved too quickly! -44.02354431292042,-4.5625,19.908806752762757
Lava (second test):
No logs.
Fire:
No logs.
Starvation:
No logs.
Mob (zombie):
No logs.
Mob (wither):
No logs.
Works for me. Without putting "moved wrongly" into the log.
Also I had never the case (in vanilla survival) that a zombie got to me while I was in bed. I think that's pretty uncommon. (Cause of "you can't sleep, there are monsters nearby")