From 56f3f0503e36f4d3b9466897dce2128ebbfae152 Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Mon, 25 Jul 2022 17:54:15 +0200 Subject: [PATCH] minor changes --- 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 0dcf8a5500..615afbce39 100644 --- a/mods/ITEMS/mcl_beacons/init.lua +++ b/mods/ITEMS/mcl_beacons/init.lua @@ -232,7 +232,6 @@ minetest.register_node("mcl_beacons:beacon", { minetest.set_node({x=pos.x,y=y,z=pos.z},{name="mcl_beacons:beacon_beam"}) end end - globalstep_function(pos,sender)--call it once outside the globalstep so the player gets the effect right after selecting it end end @@ -264,7 +263,7 @@ minetest.register_globalstep(function(dtime) timer = timer + dtime if timer >= 3 then for _, player in ipairs(minetest.get_connected_players()) do - local player_pos = player.get_pos(player) + local player_pos = player:get_pos() local pos_list = minetest.find_nodes_in_area({x=player_pos.x-50, y=player_pos.y-50, z=player_pos.z-50}, {x=player_pos.x+50, y=player_pos.y+50, z=player_pos.z+50},"mcl_beacons:beacon") for _, pos in ipairs(pos_list) do globalstep_function(pos,player)