From 5be179bf110b44bdc06df6dbfde4e61487cf0635 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sat, 22 Nov 2014 15:42:22 +0100 Subject: Replace mesecon: with mesecon. 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. --- mesecons_detector/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mesecons_detector') diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua index d7e9d41..ab997ce 100644 --- a/mesecons_detector/init.lua +++ b/mesecons_detector/init.lua @@ -96,7 +96,7 @@ minetest.register_abm( action = function(pos) if object_detector_scan(pos) then minetest.swap_node(pos, {name = "mesecons_detector:object_detector_on"}) - mesecon:receptor_on(pos, mesecon.rules.pplate) + mesecon.receptor_on(pos, mesecon.rules.pplate) end end, }) @@ -108,7 +108,7 @@ minetest.register_abm( action = function(pos) if not object_detector_scan(pos) then minetest.swap_node(pos, {name = "mesecons_detector:object_detector_off"}) - mesecon:receptor_off(pos, mesecon.rules.pplate) + mesecon.receptor_off(pos, mesecon.rules.pplate) end end, }) @@ -250,7 +250,7 @@ minetest.register_abm( action = function(pos, node) if node_detector_scan(pos) then minetest.swap_node(pos, {name = "mesecons_detector:node_detector_on", param2 = node.param2}) - mesecon:receptor_on(pos) + mesecon.receptor_on(pos) end end, }) @@ -262,7 +262,7 @@ minetest.register_abm( action = function(pos, node) if not node_detector_scan(pos) then minetest.swap_node(pos, {name = "mesecons_detector:node_detector_off", param2 = node.param2}) - mesecon:receptor_off(pos) + mesecon.receptor_off(pos) end end, }) -- cgit v1.2.3