From c1602b6d718105d245a01fe8761bd71679cbbe9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Sun, 9 Oct 2016 18:54:34 +0200 Subject: [PATCH] Fix liftshaft air bug. --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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