Rendering offset of sleeping entities does not account for scale attribute
Entities with a modified generic.scale attribute are not rendered as expected when sleeping. This applies to mobs being bigger, or smaller than usual, both with different (but similar) behavior.
Steps to Reproduce:
- Spawn a villager
- Place a bed near it
- Set time to night
/time set night
- Modify the villager's scale attribute
(A value of 2 is not required)/attribute @e[type=villager,limit=1,sort=nearest] minecraft:generic.scale base set 2
Observed & Expected Results:
- The entity will be rendered far from the bed they are sleeping in, appearing to float above, or even inside the ground.
- The entity would be be centered on the top of the bed, only with a difference in size.
Screenshots/Videos:
Video
Sleeping Villager Scale.mp4