From 8238fdacdd531a2c9e873c719260f5e005b9f0ce Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 3 May 2025 03:10:49 -0700 Subject: [PATCH] fix bob issue --- changelog.txt | 5 +++++ data-util.lua | 2 +- info.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index cc27097..a01e7e8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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: diff --git a/data-util.lua b/data-util.lua index f121833..0e48dbf 100644 --- a/data-util.lua +++ b/data-util.lua @@ -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 diff --git a/info.json b/info.json index 8056942..68ad82a 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztin", - "version": "2.1.12", + "version": "2.1.13", "factorio_version": "2.0", "title": "Tin", "author": "Brevven",