use the right mesecon:receptor_* call for on/off blinkyplant

This commit is contained in:
Vanessa Ezekowitz 2014-09-01 21:12:11 -04:00
parent 1ebd50ac75
commit d325292291

View File

@ -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,
}) })