up
This commit is contained in:
parent
fd10bcba94
commit
795438504f
1 changed files with 6 additions and 1 deletions
|
|
@ -928,7 +928,12 @@ function add_product(recipe, product)
|
||||||
if recipe ~= nil then
|
if recipe ~= nil then
|
||||||
if product.name and data.raw[product.type][product.name] then
|
if product.name and data.raw[product.type][product.name] then
|
||||||
if recipe.results == nil then
|
if recipe.results == nil then
|
||||||
recipe.results = {{recipe.result, recipe.result_count and recipe.result_count or 1}}
|
recipe.results = {}
|
||||||
|
end
|
||||||
|
for _, old in pairs(recipe.results) do
|
||||||
|
if old.name == product.name then
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
recipe.result = nil
|
recipe.result = nil
|
||||||
recipe.result_count = nil
|
recipe.result_count = nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue