diff options
| author | Anthony Zhang <azhang9@gmail.com> | 2012-06-04 22:20:04 -0400 | 
|---|---|---|
| committer | Anthony Zhang <azhang9@gmail.com> | 2012-06-04 22:20:04 -0400 | 
| commit | 4200757ba3ac7f450a6b51592339aa62af905f0e (patch) | |
| tree | 178110c383ac9b629c53ffddb745deacde870375 /mesecons_switch | |
| parent | 95a84dde468f91a112993f8c1379ebca0362d95f (diff) | |
Remove deprecated API functions "register_on_placenode" and "register_on_dignode" where possible.
Diffstat (limited to 'mesecons_switch')
| -rw-r--r-- | mesecons_switch/init.lua | 11 | 
1 files changed, 3 insertions, 8 deletions
| diff --git a/mesecons_switch/init.lua b/mesecons_switch/init.lua index d95178b..b61dd8c 100644 --- a/mesecons_switch/init.lua +++ b/mesecons_switch/init.lua @@ -13,6 +13,9 @@ minetest.register_node("mesecons_switch:mesecon_switch_on", {  	groups = {dig_immediate=2},  	drop='"mesecons_switch:mesecon_switch_off" 1',      	description="Switch", +	after_dig_node = function(pos) +		mesecon:receptor_off(pos) +	end  })  mesecon:add_receptor_node("mesecons_switch:mesecon_switch_on") @@ -31,14 +34,6 @@ minetest.register_on_punchnode(function(pos, node, puncher)  	end  end) -minetest.register_on_dignode( -	function(pos, oldnode, digger) -		if oldnode.name == "mesecons_switch:mesecon_switch_on" then -			mesecon:receptor_off(pos) -		end -	end -) -  minetest.register_craft({  	output = '"mesecons_switch:mesecon_switch_off" 2',  	recipe = { | 
