diff options
author | Jeija <jeija@mesecons.net> | 2014-11-22 20:05:36 +0100 |
---|---|---|
committer | Jeija <jeija@mesecons.net> | 2014-11-22 20:05:36 +0100 |
commit | a550323fea995437896d809df5e5c3795271219c (patch) | |
tree | d3ec9a352d9c4280f4d57c45cce976f5787d1dee /mesecons_switch/init.lua | |
parent | d19e975955465dcf483789fa537a1d9de28c52f9 (diff) |
Fix compatibility with not yet updated mods that use mesecon:receptor_*
Diffstat (limited to 'mesecons_switch/init.lua')
-rw-r--r-- | mesecons_switch/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_switch/init.lua b/mesecons_switch/init.lua index f40ef80..1b7f478 100644 --- a/mesecons_switch/init.lua +++ b/mesecons_switch/init.lua @@ -11,7 +11,7 @@ minetest.register_node("mesecons_switch:mesecon_switch_off", { }}, on_punch = function(pos, node) minetest.swap_node(pos, {name = "mesecons_switch:mesecon_switch_on", param2 = node.param2}) - mesecon.receptor_on(pos) + mesecon:receptor_on(pos) minetest.sound_play("mesecons_switch", {pos=pos}) end }) @@ -27,7 +27,7 @@ minetest.register_node("mesecons_switch:mesecon_switch_on", { }}, on_punch = function(pos, node) minetest.swap_node(pos, {name = "mesecons_switch:mesecon_switch_off", param2 = node.param2}) - mesecon.receptor_off(pos) + mesecon:receptor_off(pos) minetest.sound_play("mesecons_switch", {pos=pos}) end }) |