mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Await asynchronous mod initialization
This commit is contained in:
parent
ee2279d5f0
commit
93fbfd725f
@ -263,7 +263,7 @@ export class ModLoader {
|
|||||||
settings,
|
settings,
|
||||||
saveSettings: () => storage.writeFileAsync(modDataFile, JSON.stringify(mod.settings)),
|
saveSettings: () => storage.writeFileAsync(modDataFile, JSON.stringify(mod.settings)),
|
||||||
});
|
});
|
||||||
mod.init();
|
await mod.init();
|
||||||
this.mods.push(mod);
|
this.mods.push(mod);
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
console.error(ex);
|
console.error(ex);
|
||||||
|
Loading…
Reference in New Issue
Block a user