diff options
Diffstat (limited to 'mesecons_switch')
| -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 2af5101..0519e03 100644 --- a/mesecons_switch/init.lua +++ b/mesecons_switch/init.lua @@ -9,7 +9,7 @@ minetest.register_node("mesecons_switch:mesecon_switch_off", {  		state = mesecon.state.off  	}},  	on_punch = function(pos, node) -		minetest.env:add_node(pos, {name="mesecons_switch:mesecon_switch_on", param2=node.param2}) +		mesecon:swap_node(pos, "mesecons_switch:mesecon_switch_on")  		mesecon:receptor_on(pos)  	end  }) @@ -23,7 +23,7 @@ minetest.register_node("mesecons_switch:mesecon_switch_on", {  		state = mesecon.state.on  	}},  	on_punch = function(pos, node) -		minetest.env:add_node(pos, {name="mesecons_switch:mesecon_switch_off", param2=node.param2}) +		mesecon:swap_node(pos, "mesecons_switch:mesecon_switch_off")  		mesecon:receptor_off(pos)  	end  })  | 
