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
|
|
@ -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