diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2015-11-15 21:17:28 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2015-11-15 21:17:28 +0000 |
commit | d025784f3096bced6f0e7384b2c4d3c8a994cdac (patch) | |
tree | 004b60e5fbb1cb2eb24b90f545ea0db9c83837fb /extra.lua | |
parent | bc2b58ab8eb7593bd40abb5b6bf7ad0eded8a3d4 (diff) |
Speed up specific node checks
Diffstat (limited to 'extra.lua')
-rw-r--r-- | extra.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |