fix bob issue

This commit is contained in:
Brevven 2025-05-03 03:10:25 -07:00
parent 3b20151b42
commit a15f4fe5b6
6 changed files with 12 additions and 9 deletions

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.0.14
Date: 2025-05-03
Fixes:
- Fix possible load issues with Bob's
---------------------------------------------------------------------------------------------------
Version: 2.0.13
Date: 2025-04-08
Changes:

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": "bzsilicon",
"version": "2.0.13",
"version": "2.0.14",
"factorio_version": "2.0",
"title": "Silica & Silicon",
"author": "Brevven",
@ -13,6 +13,7 @@
"? 248k",
"? aai-industry",
"? modmashsplinterelectronics",
"? bztitanium",
"(?) IndustrialRevolution",
"base"
],

View file

@ -15,7 +15,7 @@ end
if mods.bztungsten and not mods["space-age"] then
table.insert(gyro_ingredients, util.item("tungsten-plate", 1))
table.insert(gyro_prereqs, "tungsten-processing")
elseif mods.bztitanium then
elseif mods.bztitanium and data.raw.item["titanium-plate"] then
table.insert(gyro_ingredients, util.item("titanium-plate", 1))
table.insert(gyro_prereqs, "titanium-processing")
elseif mods.Krastorio2 then

View file

@ -176,14 +176,10 @@ data:extend({
enabled = false,
energy_required = 2,
allow_productivity = true,
ingredients = (mods["bzlead"] and not mods["angelssmelting"] and {
ingredients = {
{type= "item", name="silicon-wafer", amount=1},
{type= "item", name="electronic-circuit", amount=1},
{type= "item", name="lead-plate", amount=1},
} or {
{type= "item", name="silicon-wafer", amount=1},
{type= "item", name="electronic-circuit", amount=1},
}),
},
results = {util.item("solar-cell", 2)}
},
})

View file

@ -68,6 +68,7 @@ if data.raw.item["silicone"] then
end
end
util.add_ingredient("solar-cell", "lead-plate", 1)
if not mods["Krastorio2"] then
util.remove_ingredient("concrete", "stone-brick");