Code: Select all
regenConfig = function()
local surface = game.surfaces['nauvis']
build_config_data(surface)
end,
Code: Select all
regenConfig = function(surface)
if surface then
build_config_data(surface)
else
local surface = game.surfaces['nauvis']
build_config_data(surface)
end
end,