remove last beam completly before placing a new one

This commit is contained in:
chmodsayshello 2022-07-26 11:07:45 +02:00 committed by cora
parent 6ae9e6f873
commit 022fa1d794

View File

@ -271,7 +271,7 @@ minetest.register_node("mcl_beacons:beacon", {
inv:set_stack("input",1,input) inv:set_stack("input",1,input)
local beam_itemstring = "mcl_beacons:beacon_beam_e8e3e3" local beam_itemstring = "mcl_beacons:beacon_beam_e8e3e3"
remove_beacon_beam(pos)
for y = pos.y +1, pos.y + 401 do for y = pos.y +1, pos.y + 401 do
local node = minetest.get_node({x=pos.x,y=y,z=pos.z}) local node = minetest.get_node({x=pos.x,y=y,z=pos.z})
if node.name == ignore then if node.name == ignore then