summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-09-01 21:12:11 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-09-01 21:12:11 -0400
commitd325292291ebc0bdb10ebc73b235b9569842e003 (patch)
treea24ae6852d7375943ea3076e9d91e8bd9d295ad3
parent1ebd50ac75032cd8a90e54a7f1ac4a84b0c08460 (diff)
downloadmesecons-d325292291ebc0bdb10ebc73b235b9569842e003.tar
mesecons-d325292291ebc0bdb10ebc73b235b9569842e003.tar.gz
mesecons-d325292291ebc0bdb10ebc73b235b9569842e003.tar.bz2
mesecons-d325292291ebc0bdb10ebc73b235b9569842e003.tar.xz
mesecons-d325292291ebc0bdb10ebc73b235b9569842e003.zip
use the right mesecon:receptor_* call for on/off blinkyplant
-rw-r--r--mesecons_blinkyplant/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua
index 39dcc67..f0ab81f 100644
--- a/mesecons_blinkyplant/init.lua
+++ b/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,
})