diff options
author | Jeija <jeija@mesecons.net> | 2014-11-22 15:42:22 +0100 |
---|---|---|
committer | Jeija <jeija@mesecons.net> | 2014-11-22 15:42:22 +0100 |
commit | 5be179bf110b44bdc06df6dbfde4e61487cf0635 (patch) | |
tree | 018eb119344d66d6229ad65607d51360fd006934 /mesecons_blinkyplant/init.lua | |
parent | ffacbfde5a956da910479139f490f8ffa3ae5a85 (diff) |
Replace mesecon:<some_function> with mesecon.<some_function> for greater
flexibility and because it was never inteded to be OOP in the first
place.
mesecon.receptor_on and mesecon.receptor_off are provided by wrappers
(mesecon:receptor_on/off) for compatibility, but will be removed. Mod
programmers that use mesecons: Please update!
Also, fix microcontroller polluting the global namespace and remove some
deprecated stuff.
Diffstat (limited to 'mesecons_blinkyplant/init.lua')
-rw-r--r-- | mesecons_blinkyplant/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index f0ab81f..5b3e471 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -64,7 +64,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", { }}, on_rightclick = function(pos, node, clicker) minetest.set_node(pos, {name = "mesecons_blinkyplant:blinky_plant"}) - mesecon:receptor_off(pos) + mesecon.receptor_off(pos) end }) @@ -87,10 +87,10 @@ 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) + mesecon.receptor_on(pos) else minetest.add_node(pos, {name="mesecons_blinkyplant:blinky_plant_off"}) - mesecon:receptor_off(pos) + mesecon.receptor_off(pos) end nodeupdate(pos) end, |