Fix startup crash with metal and stars

This commit is contained in:
Jason Hiatt 2025-01-22 18:17:07 +13:00 committed by GitHub
parent 366a16f76d
commit 866007bb73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ for _, technology in pairs(data.raw.technology) do
if technology.unit and technology.unit.ingredients and not table.contains(Lignumis.science_blacklist, technology.name) then
local ingredients = technology.unit.ingredients
local noMatches = table.filter(ingredients, function(ingredient)
return table.contains({ "wood-science-pack", "steam-science-pack" }, ingredient[1])
return table.contains({ "wood-science-pack", "steam-science-pack", "nanite-science-pack", "quantum-science-pack", "ring-science-pack" }, ingredient[1])
end)
local yesMatches = table.filter(ingredients, function(ingredient)
return table.contains({ "utility-science-pack", "production-science-pack", "space-science-pack" }, ingredient[1])
@ -15,4 +15,4 @@ for _, technology in pairs(data.raw.technology) do
table.insert(technology.unit.ingredients, { "steam-science-pack", 1 })
end
end
end
end