diff --git a/move_controller/doorcontroller2.lua b/move_controller/doorcontroller2.lua index 855108b..7804314 100644 --- a/move_controller/doorcontroller2.lua +++ b/move_controller/doorcontroller2.lua @@ -290,7 +290,7 @@ end -------------------------------------------------------------------------- local function exchange_node(pos, item, param2) local node = minetest.get_node_or_nil(pos) - if node and is_simple_node(node.name) or node.name == "air" then + if node and (is_simple_node(node.name) or node.name == "air") then if item and is_simple_node(item:get_name()) then fly.exchange_node(pos, item:get_name(), param2) else