Update allthemods.js
sorry about that, i tested locally with correct functionality but in a github gist linked to the website, i noticed some errors.
This commit is contained in:
parent
5042a1d146
commit
c045baf3db
|
|
@ -11,7 +11,7 @@ if(!all_mods_included) {
|
||||||
var mods_needed = mods_to_include.filter(function(modPath) { return !(enabledMods.includes(modPath)) });
|
var mods_needed = mods_to_include.filter(function(modPath) { return !(enabledMods.includes(modPath)) });
|
||||||
|
|
||||||
mods_needed.forEach(function(modPath) {
|
mods_needed.forEach(function(modPath) {
|
||||||
enabledMods.splice(enabledMods.indexOf("mods/electricitymods"),0,modPath);
|
enabledMods.splice(enabledMods.indexOf("mods/allthemods"),0,modPath);
|
||||||
});
|
});
|
||||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
||||||
alert(`The following mods have been inserted: ${mods_needed.join(", ")}
|
alert(`The following mods have been inserted: ${mods_needed.join(", ")}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue