The bug
Villagers don't take damage if lava or water is poured on top of them while they are sleeping.
Linked issues
is duplicated by 3
Attachments
Comments 10
Well actually, even if their hitbox werent tiny they still would not touch the lava/water simply because of the bed is not a full block high and is not able to be water/nor lava logged.
[media][media]
Can confirm in 1.18 Pre-release 4. Relates to MC-148559.
Since the bed is not a full block high, and the villagers hitbox is tiny when they sleep MC-148559, their hitbox wont hit the lava or water above them preventing them from burning/drowning.