1
0
mirror of https://github.com/mt-mods/biome_lib.git synced 2024-11-13 22:20:21 +01:00

tiny optimization

This commit is contained in:
Vanessa Dannenberg 2021-04-06 13:38:43 -04:00
parent 1d2593f022
commit 212024a9b4

View File

@ -431,8 +431,7 @@ local function confirm_block_surroundings(p)
for x = -32,32,64 do -- step of 64 causes it to only check the 8 corner blocks
for y = -32,32,64 do
for z = -32,32,64 do
local pos = {x=p.x + x, y=p.y + y, z=p.z + z}
local n=minetest.get_node_or_nil(pos)
local n=minetest.get_node_or_nil({x=p.x + x, y=p.y + y, z=p.z + z})
if not n or n.name == "ignore" then return false end
end
end