fix bob issue
This commit is contained in:
parent
3b20151b42
commit
a15f4fe5b6
6 changed files with 12 additions and 9 deletions
|
|
@ -1330,7 +1330,7 @@ end
|
|||
-- Replace one product with another in a recipe
|
||||
function util.replace_product(recipe_name, old, new, options)
|
||||
if not should_force(options) and bypass(recipe_name) then return end
|
||||
if data.raw.recipe[recipe_name] then
|
||||
if data.raw.recipe[recipe_name] and (data.raw.item[new] or data.raw.fluid[new]) then
|
||||
replace_product(data.raw.recipe[recipe_name], old, new, options)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue