diff --git a/init.lua b/init.lua index 1dbd1f7..d6586b4 100644 --- a/init.lua +++ b/init.lua @@ -47,9 +47,9 @@ local function fetch_lift(pos, node, clicker, rel, i, open_door, plus) return end - local test = minetest.find_nodes_in_area({x=pos.x-2, y=pos.y+i, z=pos.z-2}, {x=pos.x+2, y=pos.y+i, z=pos.z+2}, "air") - if #test == 16 then - print("lift not found, too much air") + local test = minetest.find_nodes_in_area({x=pos.x-1, y=pos.y+i, z=pos.z-1}, {x=pos.x+1, y=pos.y+i, z=pos.z+1}, "air") + if #test == 9 then + print( "lift not found, too much air") return end