From ca77ffe1c7cef639d46a0eaf6dba0027934a415f Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sun, 31 Jul 2022 11:55:49 +0000 Subject: [PATCH] decrease blockcheck by 25 nodes that way, even with the lowest possible render distance, all nodes are loaded, if there are no nodes above the beacon (excluding glass etc.), it sets the meta and places the beam 175 blocks high, it extends all the way until the next non-air block if the player is near enoght... Signed-off-by: chmodsayshello --- mods/ITEMS/mcl_beacons/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_beacons/init.lua b/mods/ITEMS/mcl_beacons/init.lua index 0bd3ed61d5..0ddd716649 100644 --- a/mods/ITEMS/mcl_beacons/init.lua +++ b/mods/ITEMS/mcl_beacons/init.lua @@ -159,7 +159,7 @@ local function globalstep_function(pos,player) 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+200 do + for y=pos.y+1, pos.y+170 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