fix FactorioClient not applying world gen preset

This commit is contained in:
Fabian Dill
2021-07-13 03:44:41 +02:00
parent b0c1a7acce
commit 5adbab1d2b
2 changed files with 48 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ async def factorio_server_watcher(ctx: FactorioContext):
if not os.path.exists(savegame_name):
logger.info(f"Creating savegame {savegame_name}")
subprocess.run((
executable, "--create", savegame_name
executable, "--create", savegame_name, "--preset", "archipelago"
))
factorio_process = subprocess.Popen((executable, "--start-server", ctx.savegame_name,
*(str(elem) for elem in server_args)),
@@ -224,7 +224,7 @@ async def factorio_spinup_server(ctx: FactorioContext):
if not os.path.exists(savegame_name):
logger.info(f"Creating savegame {savegame_name}")
subprocess.run((
executable, "--create", savegame_name, "--preset", "archipelago"
executable, "--create", savegame_name
))
factorio_process = subprocess.Popen(
(executable, "--start-server", savegame_name, *(str(elem) for elem in server_args)),