mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
make abm check param2 for up-to date beam color
This commit is contained in:
parent
e979535256
commit
f949c72945
1 changed files with 50 additions and 50 deletions
|
@ -33,7 +33,7 @@ local pallete_order = {
|
|||
pane_blue = 4,
|
||||
|
||||
glass_light_blue = 5,
|
||||
pane_light_blue_flat= 5,
|
||||
pane_light_blue_flat = 5,
|
||||
pane_light_blue = 5,
|
||||
|
||||
glass_pink = 6,
|
||||
|
@ -386,7 +386,7 @@ minetest.register_abm{
|
|||
minetest.set_node({x=pos.x,y=pos.y-1,z=pos.z},{name="mcl_beacons:beacon_beam",param2=0})
|
||||
end
|
||||
remove_beacon_beam(pos)
|
||||
elseif node_above.name == "air" then
|
||||
elseif node_above.name == "air" or (node_above.name == "mcl_beacons:beacon_beam" and node_above.param2 ~= node_current.param2) then
|
||||
minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z},{name="mcl_beacons:beacon_beam",param2=node_current.param2})
|
||||
elseif minetest.get_item_group(node_above.name, "glass") ~= 0 or minetest.get_item_group(node_above.name,"material_glass") ~= 0 then
|
||||
minetest.set_node({x=pos.x,y=pos.y+2,z=pos.z},{name="mcl_beacons:beacon_beam",param2=get_beacon_beam(node_above.name)})
|
||||
|
|
Loading…
Reference in a new issue