Skip to content

Commit ed6922f

Browse files
authored
Await asynchronous mod initialization (#1485)
1 parent b07e04e commit ed6922f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/mods/modloader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export class ModLoader {
263263
settings,
264264
saveSettings: () => storage.writeFileAsync(modDataFile, JSON.stringify(mod.settings)),
265265
});
266-
mod.init();
266+
await mod.init();
267267
this.mods.push(mod);
268268
} catch (ex) {
269269
console.error(ex);

0 commit comments

Comments
 (0)