Why won’t my villagers sleep in my iron farm?

Why won’t my villagers sleep in my iron farm? In order to let them sleep, you have to periodically break eye contact between them and the zombie. One way to do this, as you observed, is to disconnect and log back in.

In order to let them sleep, you have to periodically break eye contact between them and the zombie. One way to do this, as you observed, is to disconnect and log back in.
See also  Is Monster Hunter good on Switch?