summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
})