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
|
||||
Date: 2024-12-24
|
||||
Fixes:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bztitanium",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"factorio_version": "2.0",
|
||||
"title": "Titanium",
|
||||
"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!
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue