Add automatic headless download and update

This commit is contained in:
Cooldude2606 committed 2026-02-05 00:45:53 +00:00
1 parent 1c7a32113a
commit 44abeace88
13 files changed
+177 -13

No files matched your search

+2
View File
@@ -639,8 +639,10 @@ end`.replace(/\r?\n/g, " ");
async init(pluginInfos: lib.PluginNodeEnvInfo[]) {
this.notifyStatus("starting");
const factorioVersions = await this.sendTo("controller", new lib.FactorioVersionsRequest());
try {
await this._loadStats();
await this.server.checkForUpdates(factorioVersions);
await this.server.init();
} catch (err) {
this.notifyExit();