From b6c3af9ee030dfc57931dd926cc7d9502175371c Mon Sep 17 00:00:00 2001 From: tour <129965577+a-tour-ist@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:48:47 +0100 Subject: [PATCH] Add missing 'not' (#28) 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