From 212024a9b466c86509ba111d886254aff74392ae Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Tue, 6 Apr 2021 13:38:43 -0400 Subject: [PATCH] tiny optimization --- init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.lua b/init.lua index c02435a..fe3d8f1 100644 --- a/init.lua +++ b/init.lua @@ -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