fix startup crash with Cerys and other mods
This commit is contained in:
parent
9f1be54c70
commit
593aa98edb
3 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 2.0.2
|
||||||
|
Date: 2024-12-24
|
||||||
|
Fixes:
|
||||||
|
- Attempt fix for crash related to recipe results without names.
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Date: 2024-12-24
|
Date: 2024-12-24
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bztitanium",
|
"name": "bztitanium",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"factorio_version": "2.0",
|
"factorio_version": "2.0",
|
||||||
"title": "Titanium",
|
"title": "Titanium",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ if (not mods["bobplates"]) then
|
||||||
|
|
||||||
-- All equipment that uses steel now uses titanium. Who wants to carry around steel!
|
-- All equipment that uses steel now uses titanium. Who wants to carry around steel!
|
||||||
for name, recipe in pairs(data.raw.recipe) do
|
for name, recipe in pairs(data.raw.recipe) do
|
||||||
if recipe.results and recipe.results[1] and recipe.results[1].name:find("equipment") then
|
if recipe.results and recipe.results[1] and recipe.results[1].name and recipe.results[1].name:find("equipment") then
|
||||||
util.replace_ingredient(recipe.name, "steel-plate", util.me.titanium_plate)
|
util.replace_ingredient(recipe.name, "steel-plate", util.me.titanium_plate)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue