Skip to content

Commit

Permalink
use the right mesecon:receptor_* call for on/off blinkyplant
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa Ezekowitz committed Sep 2, 2014
1 parent 1ebd50a commit d325292
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesecons_blinkyplant/init.lua
Expand Up @@ -87,11 +87,12 @@ minetest.register_abm({
action = function(pos, node, active_object_count, active_object_count_wider)
if node.name == "mesecons_blinkyplant:blinky_plant_off" then
minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_on"})
mesecon:receptor_on(pos)
else
minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"})
mesecon:receptor_off(pos)
end
nodeupdate(pos)
mesecon:receptor_on(pos)
end,
})

0 comments on commit d325292

Please sign in to comment.