From bf752ce8d0e337ef1bd3a8d0112106f46169695e Mon Sep 17 00:00:00 2001 From: tour <129965577+a-tour-ist@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:27:29 +0100 Subject: [PATCH] add missing not otherwise large doors won't swing open anymore --- gate_functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gate_functions.lua b/gate_functions.lua index 484db57..cd3a876 100644 --- a/gate_functions.lua +++ b/gate_functions.lua @@ -291,7 +291,7 @@ local get_door_layout = function(pos, facedir, player) if not vector.equals(door_node.pos, origin) then -- There's no obstruction if the node is literally located along the rotation axis local newpos = rotate_pos_displaced(door_node.pos, origin, axis, direction) - if get_buildable_to(newpos) then + if not get_buildable_to(newpos) then -- check if the destination node is free. door.swings[direction] = false break