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 --- dirt.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dirt.lua') diff --git a/dirt.lua b/dirt.lua index 62792a5..3d5fa8e 100644 --- a/dirt.lua +++ b/dirt.lua @@ -73,7 +73,7 @@ minetest.register_abm({ local count_grasses = {} local curr_max = 0 local curr_type = "ethereal:green_dirt" -- fallback - local positions = minetest.find_nodes_in_area( + local positions = minetest.find_nodes_in_area_under_air( {x = (pos.x - 2), y = (pos.y - 1), z = (pos.z - 2)}, {x = (pos.x + 2), y = (pos.y + 1), z = (pos.z + 2)}, "group:ethereal_grass") -- cgit v1.2.3