mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-01-09 08:40:17 +01:00
Make the detector recipe from luacontroller optional (#696)
This commit is contained in:
parent
dd073d2e83
commit
1f9e86c3da
@ -111,6 +111,7 @@ minetest.register_node("mesecons_detector:object_detector_on", {
|
|||||||
on_blast = mesecon.on_blastnode,
|
on_blast = mesecon.on_blastnode,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("mesecons_luacontroller") then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'mesecons_detector:object_detector_off',
|
output = 'mesecons_detector:object_detector_off',
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -119,6 +120,7 @@ minetest.register_craft({
|
|||||||
{"mesecons_gamecompat:steel_ingot", "group:mesecon_conductor_craftable", "mesecons_gamecompat:steel_ingot"},
|
{"mesecons_gamecompat:steel_ingot", "group:mesecon_conductor_craftable", "mesecons_gamecompat:steel_ingot"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'mesecons_detector:object_detector_off',
|
output = 'mesecons_detector:object_detector_off',
|
||||||
@ -287,6 +289,7 @@ minetest.register_node("mesecons_detector:node_detector_on", {
|
|||||||
on_blast = mesecon.on_blastnode,
|
on_blast = mesecon.on_blastnode,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("mesecons_luacontroller") then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'mesecons_detector:node_detector_off',
|
output = 'mesecons_detector:node_detector_off',
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -295,6 +298,7 @@ minetest.register_craft({
|
|||||||
{"mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot"},
|
{"mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:steel_ingot"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'mesecons_detector:node_detector_off',
|
output = 'mesecons_detector:node_detector_off',
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
name = mesecons_detector
|
name = mesecons_detector
|
||||||
depends = mesecons, mesecons_gamecompat, mesecons_materials
|
depends = mesecons, mesecons_gamecompat, mesecons_materials
|
||||||
|
optional_depends = mesecons_luacontroller
|
||||||
|
Loading…
Reference in New Issue
Block a user