From 3928d54d0cb9992c1aca8d86c77b10a5a77083f8 Mon Sep 17 00:00:00 2001 From: Jeija Date: Thu, 6 Sep 2012 09:53:30 +0200 Subject: Implement mesecon:register_receptor(onstate, offstate, rules, get_rules) and make add_receptor_node(_off) deprecated --- mesecons_switch/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mesecons_switch/init.lua') 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 -- cgit v1.2.3