Sea Block


No ore patches, expand from a small island. Also install the 'Sea Block Pack - Official' mod for a complete modpack

Overhaul
2 months ago
0.14 - 1.1
86.6K

b No ingredients cause error

5 years ago

in data-updates on line 542 there is an error due to non-existent ingredients

local function scaningredients(recipe)
local haveiron = true
if recipe.ingredients then
for k,v in pairs(recipe.ingredients) do
local nameidx = 1
if v.name then nameidx = 'name' end
if not ironnames[v[nameidx]] then
haveiron = false
end
end
end
foundiron = foundiron or haveiron
end
fixed version

5 years ago
(updated 5 years ago)

and line 64, 168 in data-final

5 years ago

I tested this by setting the seablock cellulose fiber foraging recipe to use a nil ingredients table instead of an empty one. Factorio gave the following error:

11.276 Mods to disable:Failed to load mods: Error while loading recipe prototype "sb-cellulose-foraging" (recipe): Difficulty normal: Key "ingredients" not found in property tree at ROOT.recipe.sb-cellulose-foraging Modifications: Sea Block

I don't see any point in supporting nil ingredients if the base game refuses to load them.

New response