Add missing 'not' (#28)
Some checks failed
luacheck / build (push) Has been cancelled

otherwise large doors won't swing open anymore
This commit is contained in:
tour 2024-11-26 17:48:47 +01:00 committed by GitHub
parent eedb3768bd
commit b6c3af9ee0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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