This is a minor bug but i still thought i would report it. If you go into third person, you can angle your camera in a way that wakes you through the iron bar.
Linked issues
relates to
Attachments
Comments

I can confirm for 20w46a.
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w06a.
Can confirm in 1.16.5 and 21w08b.
Can confirm in 21w10a. Video attached.
Can confirm in 21w15a.
Can confirm in 21w16a.
Can confirm in 1.17.
Can confirm in 1.17.1.
Can confirm in 21w42a, though I'm pretty sure that this is intended due to the fact that Mojang considers MC-181095 to be a valid issue.
Can confirm in 1.18.2.
Can confirm in 1.19.2.
Can confirm in 1.19.3.
I can confirm for 1.16.3 but this might Work as Intended based on MC-175866