From 1830ca881582503b8517b45ce91713db775e52ec Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sun, 31 Jul 2022 12:25:57 +0000 Subject: [PATCH] 'fix' beacon beam abm --- mods/ITEMS/mcl_beacons/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_beacons/init.lua b/mods/ITEMS/mcl_beacons/init.lua index b82fca706..7f909edd0 100644 --- a/mods/ITEMS/mcl_beacons/init.lua +++ b/mods/ITEMS/mcl_beacons/init.lua @@ -158,7 +158,7 @@ local function globalstep_function(pos,player) return else local obstructed = false - for y=pos.y+1, pos.y+175 do + for y=pos.y+1, pos.y+100 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 @@ -342,7 +342,7 @@ minetest.register_abm{ if node_below.name == "air" then remove_beacon_beam(pos) elseif node_above.name == "air" then - minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z},{name="mcl_beacons:beacon_beam",param2=node_above.param2}) + minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z},{name="mcl_beacons:beacon_beam",param2=node_below.param2}) end end, }