Skip to content

Commit d325292

Browse files
author
Vanessa Ezekowitz
committedSep 2, 2014
use the right mesecon:receptor_* call for on/off blinkyplant
1 parent 1ebd50a commit d325292

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎mesecons_blinkyplant/init.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ minetest.register_abm({
8787
action = function(pos, node, active_object_count, active_object_count_wider)
8888
if node.name == "mesecons_blinkyplant:blinky_plant_off" then
8989
minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_on"})
90+
mesecon:receptor_on(pos)
9091
else
9192
minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"})
93+
mesecon:receptor_off(pos)
9294
end
9395
nodeupdate(pos)
94-
mesecon:receptor_on(pos)
9596
end,
9697
})
9798

0 commit comments

Comments
 (0)
Please sign in to comment.