summaryrefslogtreecommitdiff
path: root/mesecons_switch
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-09-06 09:53:30 +0200
committerJeija <norrepli@gmail.com>2012-09-06 09:53:30 +0200
commit3928d54d0cb9992c1aca8d86c77b10a5a77083f8 (patch)
treedb15e79f463ddf5aecab921e5e4c315e8321782f /mesecons_switch
parent3c90f36a75751d0d1d3550d82afe8afdd3ba9be4 (diff)
downloadmesecons-3928d54d0cb9992c1aca8d86c77b10a5a77083f8.tar
mesecons-3928d54d0cb9992c1aca8d86c77b10a5a77083f8.tar.gz
mesecons-3928d54d0cb9992c1aca8d86c77b10a5a77083f8.tar.bz2
mesecons-3928d54d0cb9992c1aca8d86c77b10a5a77083f8.tar.xz
mesecons-3928d54d0cb9992c1aca8d86c77b10a5a77083f8.zip
Implement mesecon:register_receptor(onstate, offstate, rules, get_rules) and make add_receptor_node(_off) deprecated
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