mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-04 08:34:02 +00:00
Await asynchronous mod initialization (#1485)
This commit is contained in:
parent
b07e04e7b1
commit
ed6922f912
@ -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