se core mining setting

This commit is contained in:
Brevven 2023-03-26 00:59:03 -07:00
parent 8770704dc1
commit 18f11ec068
8 changed files with 41 additions and 13 deletions

View file

@ -533,13 +533,16 @@ end
function add_product(recipe, product)
if recipe ~= nil then
if not recipe.normal then
if recipe.results == nil then
recipe.results = {{recipe.result, recipe.result_count and recipe.result_count or 1}}
if (product[1] and data.raw.item[product[1]]) or
(product.name and data.raw[product.type][product.name]) then
if not recipe.normal then
if recipe.results == nil then
recipe.results = {{recipe.result, recipe.result_count and recipe.result_count or 1}}
end
recipe.result = nil
recipe.result_count = nil
table.insert(recipe.results, product)
end
recipe.result = nil
recipe.result_count = nil
table.insert(recipe.results, product)
end
end
end