When using https://mods.factorio.com/mod/RemoveBiterSoil I get the following error:
Error while running event ChunkyChunks::on_tick (ID 0)
ChunkyChunks/control.lua:357: attempt to index local 'surface' (a nil value)
stack traceback:
ChunkyChunks/control.lua:357: in function 'iterate_surface_chunks'
ChunkyChunks/control.lua:235: in function <ChunkyChunks/control.lua:217>
I solved it for now by adding a check for nil in control.lua:
function iterate_surface_chunks(surface)
local c = 0
if not (surface == nil) then
for chunk in surface.get_chunks() do
c = c + 1
blockify({position = fromXY(chunk), surface = surface})
end
end
return c
end
No idea of the implications, but now It does not crash at least.