diff options
Diffstat (limited to 'mesecons_switch')
| -rw-r--r-- | mesecons_switch/init.lua | 3 | 
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  | 
