1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-02 15:44:04 +00:00

Await asynchronous mod initialization (#1485)

This commit is contained in:
Даниїл Григор'єв 2022-11-04 00:17:07 +02:00 committed by GitHub
parent b07e04e7b1
commit ed6922f912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,7 @@ export class ModLoader {
settings,
saveSettings: () => storage.writeFileAsync(modDataFile, JSON.stringify(mod.settings)),
});
mod.init();
await mod.init();
this.mods.push(mod);
} catch (ex) {
console.error(ex);