summaryrefslogtreecommitdiff
path: root/mesecons_switch
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-09-06 10:32:10 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-09-06 10:32:10 -0400
commit70e9db28bc138d9aef7f4f0e5f9e6eb75b1af552 (patch)
tree907e6d152fbf41484edbd0a4e50986ed0dd7c548 /mesecons_switch
parentc04870efe43268a4344fdfc090cbd89909aab5ae (diff)
parent3928d54d0cb9992c1aca8d86c77b10a5a77083f8 (diff)
downloadmesecons-70e9db28bc138d9aef7f4f0e5f9e6eb75b1af552.tar
mesecons-70e9db28bc138d9aef7f4f0e5f9e6eb75b1af552.tar.gz
mesecons-70e9db28bc138d9aef7f4f0e5f9e6eb75b1af552.tar.bz2
mesecons-70e9db28bc138d9aef7f4f0e5f9e6eb75b1af552.tar.xz
mesecons-70e9db28bc138d9aef7f4f0e5f9e6eb75b1af552.zip
Merge branch 'master' of github.com:Jeija/minetest-mod-mesecons
Diffstat (limited to 'mesecons_switch')
-rw-r--r--mesecons_switch/init.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesecons_switch/init.lua b/mesecons_switch/init.lua
index 1213f6e..a8b3415 100644
--- a/mesecons_switch/init.lua
+++ b/mesecons_switch/init.lua
@@ -15,8 +15,7 @@ minetest.register_node("mesecons_switch:mesecon_switch_on", {
description="Switch",
})
-mesecon:add_receptor_node("mesecons_switch:mesecon_switch_on")
-mesecon:add_receptor_node_off("mesecons_switch:mesecon_switch_off")
+mesecon:register_receptor("mesecons_switch:mesecon_switch_on", "mesecons_switch:mesecon_switch_off")
minetest.register_on_punchnode(function(pos, node, puncher)
if node.name == "mesecons_switch:mesecon_switch_on" then