fix bob issue

This commit is contained in:
Brevven 2025-05-03 03:09:26 -07:00
parent 3890e5af14
commit 62957d5c2d
4 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 2.1.10
Date: 2025-05-03
Changes:
- Fix load issue with bob's
---------------------------------------------------------------------------------------------------
Version: 2.1.9 Version: 2.1.9
Date: 2025-04-20 Date: 2025-04-20
Changes: Changes:

View file

@ -1330,7 +1330,7 @@ end
-- Replace one product with another in a recipe -- Replace one product with another in a recipe
function util.replace_product(recipe_name, old, new, options) function util.replace_product(recipe_name, old, new, options)
if not should_force(options) and bypass(recipe_name) then return end 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) replace_product(data.raw.recipe[recipe_name], old, new, options)
end end
end end

View file

@ -1,6 +1,6 @@
{ {
"name": "bzzirconium", "name": "bzzirconium",
"version": "2.1.9", "version": "2.1.10",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "Zirconium", "title": "Zirconium",
"author": "Brevven", "author": "Brevven",

View file

@ -191,7 +191,7 @@ data:extend({
-- cermet only if setting enabled -- cermet only if setting enabled
if util.me.use_cermet() then if util.me.use_cermet() then
local cermet_i = {util.item("zirconia", 2), util.item("copper-plate", 1)} local cermet_i = {util.item("zirconia", 2), util.item("copper-plate", 1)}
if mods.bztitanium then if mods.bztitanium and data.raw.item["titanium-plate"] then
local tme = require("__bztitanium__.me"); local tme = require("__bztitanium__.me");
table.insert(cermet_i, util.item(tme.titanium_plate, 1)) table.insert(cermet_i, util.item(tme.titanium_plate, 1))
end end
@ -449,7 +449,7 @@ end
end end
-- Zircaloy-4 only if needed -- Zircaloy-4 only if needed
if mods.bztin then if mods.bztin and data.raw.item["tin-plate"] then
require("basic-foundry") require("basic-foundry")
local zircaloyi = { local zircaloyi = {
util.item("zirconium-sponge", 17), util.item("zirconium-sponge", 17),