fix bob issue

This commit is contained in:
Brevven 2025-05-03 03:10:49 -07:00
parent 7795051221
commit 8238fdacdd
3 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.1.13
Date: 2025-05-03
Fixes:
- Fix mod load issue with Bob's
---------------------------------------------------------------------------------------------------
Version: 2.1.12
Date: 2025-04-20
Fixes:

View file

@ -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

View file

@ -1,6 +1,6 @@
{
"name": "bztin",
"version": "2.1.12",
"version": "2.1.13",
"factorio_version": "2.0",
"title": "Tin",
"author": "Brevven",