From 1462c39092bcff39eb9dd73958f4fd351ea4160e Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sun, 31 Jul 2022 12:00:44 +0000 Subject: [PATCH] remove unnecessary minetest.get_node --- mods/ITEMS/mcl_beacons/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_beacons/init.lua b/mods/ITEMS/mcl_beacons/init.lua index 0ddd716649..b82fca706d 100644 --- a/mods/ITEMS/mcl_beacons/init.lua +++ b/mods/ITEMS/mcl_beacons/init.lua @@ -157,9 +157,8 @@ local function globalstep_function(pos,player) if meta:get_int("effect_level") == 2 and power_level < 4 then return else - local colorblock = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z}) local obstructed = false - for y=pos.y+1, pos.y+170 do + for y=pos.y+1, pos.y+175 do local nodename = minetest.get_node({x=pos.x,y=y, z = pos.z}).name if nodename ~= "mcl_core:bedrock" and nodename ~= "air" and nodename ~= "mcl_core:void" and nodename ~= "ignore" then --ignore means not loaded, let's just assume that's air