diff options
-rw-r--r-- | src/modules/mods.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/mods.js b/src/modules/mods.js index 6214098..aecb5e3 100644 --- a/src/modules/mods.js +++ b/src/modules/mods.js @@ -729,9 +729,17 @@ mods.toggle = (mod, fork) => { } // toggles all mods, thereby inverting the current enabled states + // + // this skips core mods, as there's generally little use to have + // this affect them if (mod == "allmods") { let modlist = mods.list().all; // get list of all mods for (let i = 0; i < modlist.length; i++) { // run through list + // skip core mods + if (modlist[i].name.toLowerCase().match(/^northstar\./)) { + continue; + } + mods.toggle(modlist[i].name, true); // enable mod } |