Update to 2.0

This commit is contained in:
Simon Brodtmann 2025-10-04 21:42:12 +02:00
parent 98ea14df52
commit c2b65301fb
21 changed files with 349 additions and 665 deletions

View file

@ -35,7 +35,7 @@ end
script.on_event(defines.events.on_console_chat, on_console_chat)
function on_init()
if global.starting_spawn then return end
if storage.starting_spawn then return end
if settings.global["bzgas-force-spawn"].value then
local gas = game.surfaces["nauvis"].find_entities_filtered({area = {{-100, -100}, {100, 100}}, name="gas"})
if #gas == 0 then
@ -45,7 +45,7 @@ function on_init()
end
end
end
global.starting_spawn = true
storage.starting_spawn = true
end
script.on_init(on_init)