ChunkyChunks - Configurable Gridlines

by Qon

Chunk aligned blueprints? Display chunk lines without the annoying tile lines that the debug option adds. Configurable grids at any sizes if your blueprints are substation, chunk, roboport or radar sized (or any other size)!

Utilities
3 years ago
0.17 - 1.1
6.40K

b Error when using Remove Biter Soil

7 months ago

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.

New response