From c385f54ced388c947b15476e308261a9bf2449ee Mon Sep 17 00:00:00 2001 From: Robbie Ferguson Date: Thu, 19 May 2016 22:58:08 -0400 Subject: [PATCH] Update init.lua --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 274ee92..5030e94 100644 --- a/init.lua +++ b/init.lua @@ -43,7 +43,7 @@ local function find_air(pos,player) local bot_node = minetest.get_node(bot) local mid_node = minetest.get_node(mid) local top_node = minetest.get_node(top) - while bot_node.name ~= "air" or bot_node.name ~= "ignore" or mid_node.name ~= "air" or mid_node.name ~= "ignore" and top_node.name ~= "air" or top_node.name ~= "ignore" do + while bot_node.name ~= "air" and bot_node.name ~= "ignore" and mid_node.name ~= "air" and mid_node.name ~= "ignore" and top_node.name ~= "air" and top_node.name ~= "ignore" do -- Iterate through the y-axis to find a suitable node to land on pos.y = pos.y +2 bot = {pos.x, pos.y-1, pos.z}