forked from minetest-mods/mesecons
		
	Make the detector recipe from luacontroller optional (#696)
This commit is contained in:
		| @@ -111,14 +111,16 @@ minetest.register_node("mesecons_detector:object_detector_on", { | ||||
| 	on_blast = mesecon.on_blastnode, | ||||
| }) | ||||
|  | ||||
| minetest.register_craft({ | ||||
| 	output = 'mesecons_detector:object_detector_off', | ||||
| 	recipe = { | ||||
| 		{"mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot"}, | ||||
| 		{"mesecons_gamecompat:steel_ingot", "mesecons_luacontroller:luacontroller0000", "mesecons_gamecompat:steel_ingot"}, | ||||
| 		{"mesecons_gamecompat:steel_ingot", "group:mesecon_conductor_craftable", "mesecons_gamecompat:steel_ingot"}, | ||||
| 	} | ||||
| }) | ||||
| if minetest.get_modpath("mesecons_luacontroller") then | ||||
| 	minetest.register_craft({ | ||||
| 		output = 'mesecons_detector:object_detector_off', | ||||
| 		recipe = { | ||||
| 			{"mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot"}, | ||||
| 			{"mesecons_gamecompat:steel_ingot", "mesecons_luacontroller:luacontroller0000", "mesecons_gamecompat:steel_ingot"}, | ||||
| 			{"mesecons_gamecompat:steel_ingot", "group:mesecon_conductor_craftable", "mesecons_gamecompat:steel_ingot"}, | ||||
| 		} | ||||
| 	}) | ||||
| end | ||||
|  | ||||
| minetest.register_craft({ | ||||
| 	output = 'mesecons_detector:object_detector_off', | ||||
| @@ -287,14 +289,16 @@ minetest.register_node("mesecons_detector:node_detector_on", { | ||||
| 	on_blast = mesecon.on_blastnode, | ||||
| }) | ||||
|  | ||||
| minetest.register_craft({ | ||||
| 	output = 'mesecons_detector:node_detector_off', | ||||
| 	recipe = { | ||||
| 		{"mesecons_gamecompat:steel_ingot", "group:mesecon_conductor_craftable", "mesecons_gamecompat:steel_ingot"}, | ||||
| 		{"mesecons_gamecompat:steel_ingot", "mesecons_luacontroller:luacontroller0000", "mesecons_gamecompat:steel_ingot"}, | ||||
| 		{"mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot"}, | ||||
| 	} | ||||
| }) | ||||
| if minetest.get_modpath("mesecons_luacontroller") then | ||||
| 	minetest.register_craft({ | ||||
| 		output = 'mesecons_detector:node_detector_off', | ||||
| 		recipe = { | ||||
| 			{"mesecons_gamecompat:steel_ingot", "group:mesecon_conductor_craftable", "mesecons_gamecompat:steel_ingot"}, | ||||
| 			{"mesecons_gamecompat:steel_ingot", "mesecons_luacontroller:luacontroller0000", "mesecons_gamecompat:steel_ingot"}, | ||||
| 			{"mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot"}, | ||||
| 		} | ||||
| 	}) | ||||
| end | ||||
|  | ||||
| minetest.register_craft({ | ||||
| 	output = 'mesecons_detector:node_detector_off', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user