Skip to content

Commit

Permalink
Await asynchronous mod initialization (#1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
dengr1065 authored Nov 3, 2022
1 parent b07e04e commit ed6922f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/mods/modloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed6922f

Please sign in to comment.