Remove dual condition.

This commit is contained in:
SFENCE 2021-03-29 21:59:00 +02:00
parent 7600b7ee49
commit 963dbdf681
1 changed files with 18 additions and 20 deletions

View File

@ -74,26 +74,24 @@ local function register_recipe(typename, data)
})
end
if (have_cg or have_i3) and technic.recipes[typename].output_size == 1 then
if (have_cg or have_i3) then
local result = data.output;
if (type(result)=="table") then
result = result[1];
end
local items = table.concat(data.input, ", ");
if have_cg and craftguide.register_craft then
craftguide.register_craft({
type = typename,
result = result,
items = {items},
})
end
if have_i3 then
i3.register_craft({
type = typename,
result = result,
items = {items},
})
end
local result = data.output
if (type(result)=="table") then
result = result[1]
end
local items = table.concat(data.input, ", ")
if have_cg and craftguide.register_craft then
craftguide.register_craft({
type = typename,
result = result,
items = {items},
})
end
if have_i3 then
i3.register_craft({
type = typename,
result = result,
items = {items},
})
end
end
end