From d025784f3096bced6f0e7384b2c4d3c8a994cdac Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 15 Nov 2015 21:17:28 +0000 Subject: Speed up specific node checks --- extra.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extra.lua') diff --git a/extra.lua b/extra.lua index 9f118a5..41d304d 100644 --- a/extra.lua +++ b/extra.lua @@ -308,7 +308,7 @@ minetest.register_on_generated(function(minp, maxp) return end local bpos - for key, pos in pairs(minetest.find_nodes_in_area(minp, maxp, "default:stone_with_coal")) do + for key, pos in pairs(minetest.find_nodes_in_area_under_air(minp, maxp, "default:stone_with_coal")) do bpos = {x = pos.x, y = pos.y + 1, z = pos.z } if minetest.get_node(bpos).name == "air" then if bpos.y > -3000 and bpos.y < -2000 then -- cgit v1.2.3