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 end
if (have_cg or have_i3) and technic.recipes[typename].output_size == 1 then 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
local result = data.output; if (type(result)=="table") then
if (type(result)=="table") then result = result[1]
result = result[1]; end
end local items = table.concat(data.input, ", ")
local items = table.concat(data.input, ", "); if have_cg and craftguide.register_craft then
if have_cg and craftguide.register_craft then craftguide.register_craft({
craftguide.register_craft({ type = typename,
type = typename, result = result,
result = result, items = {items},
items = {items}, })
}) end
end if have_i3 then
if have_i3 then i3.register_craft({
i3.register_craft({ type = typename,
type = typename, result = result,
result = result, items = {items},
items = {items}, })
})
end
end end
end end
end end