969bcec6c9
InteractWithDoor was a stub, so a villager whose path went through a closed oak door walked into it and stayed there. In generated villages, villagers who were inside a house never reached a job site, a bed or the meeting point. Like vanilla, a villager now opens the closed mob-interactable doors on its next path step (DoorBlock.setOpen: both halves, the door sound and the block_open game event), remembers the door it leaves and the doors it opened, and closes them once it is more than one step past them, unless another villager within 2 blocks is walking through. A villager going to sleep closes them too. The mob events apply after the mob loop, so the door opens one tick later than in vanilla, where DoorBlock.setOpen changes the world during the villager's brain tick. lan_e2e's new doors check shuts a villager in a room with a closed door and a free composter outside. Before, it never opened the door; now it opens it, becomes a farmer, and the door is closed again on the server and on the guest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>