forked from minetest-mods/mesecons
use the right mesecon:receptor_* call for on/off blinkyplant
This commit is contained in:
parent
1ebd50ac75
commit
d325292291
@ -87,11 +87,12 @@ minetest.register_abm({
|
|||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
if node.name == "mesecons_blinkyplant:blinky_plant_off" then
|
if node.name == "mesecons_blinkyplant:blinky_plant_off" then
|
||||||
minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_on"})
|
minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_on"})
|
||||||
|
mesecon:receptor_on(pos)
|
||||||
else
|
else
|
||||||
minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"})
|
minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"})
|
||||||
|
mesecon:receptor_off(pos)
|
||||||
end
|
end
|
||||||
nodeupdate(pos)
|
nodeupdate(pos)
|
||||||
mesecon:receptor_on(pos)
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user