But I came across this bug in which the game constantly crashes. I managed to make the minimum necessary scenario that allows you to repeat the crash.
control.lua:
Code: Select all
script.on_init(function(event)
log('on_init')
game.create_surface("s1")
-- Delete Nauvis
local surface = game.surfaces[1]
surface.delete_chunk({1, 1})
end)
script.on_event(defines.events.on_chunk_deleted, function(event)
log('on_chunk_deleted')
game.create_surface("s2")
end)