and here is the doors.lua code. I'll try to solve it in the meantime.
local positionOffsets = {
Position(1, 0, 0), -- east
Position(0, 1, 0), -- south
Position(-1, 0, 0), -- west
Position(0, -1, 0) -- north
}
--[[
When closing a door with a creature in it findPushPosition will...