allow transformer and chainsaw crafts even if required mesecon modules are not loaded

This commit is contained in:
Tim
2015-01-19 00:48:27 +01:00
parent 1d81e6d4d1
commit e4c34c9c32
2 changed files with 12 additions and 4 deletions

View File

@ -357,10 +357,13 @@ minetest.register_tool("technic:chainsaw", {
end,
})
local mesecons_button = minetest.get_modpath("mesecons_button")
local trigger = mesecons_button and "mesecons_button:button_off" or "default:mese_crystal_fragment"
minetest.register_craft({
output = "technic:chainsaw",
recipe = {
{"technic:stainless_steel_ingot", "mesecons_button:button_off", "technic:battery"},
{"technic:stainless_steel_ingot", trigger, "technic:battery"},
{"technic:fine_copper_wire", "technic:motor", "technic:battery"},
{"", "", "technic:stainless_steel_ingot"},
}