diff --git a/init.lua b/init.lua index 068bba0..1666e45 100644 --- a/init.lua +++ b/init.lua @@ -43,6 +43,8 @@ local function find_air(pos,player) local top_node = minetest.get_node(top) while mid_node.name ~= "air" or mid_node.name ~= "ignore" and top_node.name ~= "air" or top_node.name ~= "ignore" do pos.y = pos.y +2 + mid_node = minetest.get_node(mid) + top_node = minetest.get_node(top) end minetest.chat_send_player(sender, "Result: " .. mid)