Skip to content

Commit

Permalink
Add missing 'not' (#28)
Browse files Browse the repository at this point in the history
otherwise large doors won't swing open anymore
  • Loading branch information
a-tour-ist authored Nov 26, 2024
1 parent eedb376 commit b6c3af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gate_functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6c3af9

Please sign in to comment.