otherwise large doors won't swing open anymore
This commit is contained in:
parent
eedb3768bd
commit
b6c3af9ee0
@ -291,7 +291,7 @@ local get_door_layout = function(pos, facedir, player)
|
|||||||
if not vector.equals(door_node.pos, origin) then
|
if not vector.equals(door_node.pos, origin) then
|
||||||
-- There's no obstruction if the node is literally located along the rotation axis
|
-- 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)
|
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.
|
-- check if the destination node is free.
|
||||||
door.swings[direction] = false
|
door.swings[direction] = false
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user