Skip to content
Permalink
Browse files

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

  • Loading branch information
Vanessa Ezekowitz
Vanessa Ezekowitz committed Sep 2, 2014
1 parent 1ebd50a commit d325292291ebc0bdb10ebc73b235b9569842e003
Showing with 2 additions and 1 deletion.
  1. +2 −1 mesecons_blinkyplant/init.lua
@@ -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.
You can’t perform that action at this time.