restructure dep block
This commit is contained in:
parent
420873c568
commit
50152c12f0
|
|
@ -12,13 +12,7 @@ var modName = "mods/the_ground.js";
|
|||
var libraryMod = "mods/code_library.js";
|
||||
var colorOffsetMod = "mods/maxColorOffset.js";
|
||||
|
||||
if(!enabledMods.includes(libraryMod)) {
|
||||
enabledMods.splice(enabledMods.indexOf(modName),0,libraryMod);
|
||||
enabledMods.splice(enabledMods.indexOf(modName),0,colorOffsetMod);
|
||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
||||
alert(`The ${libraryMod} and ${colorOffsetMod} mods are required and have been automatically inserted (reload for this to take effect).`);
|
||||
} else {
|
||||
|
||||
if(enabledMods.includes(libraryMod) && enabledMods.includes(colorOffsetMod)) {
|
||||
//Variables
|
||||
|
||||
//var vitreousInterfelsicName = "obsidian";
|
||||
|
|
@ -4014,4 +4008,9 @@ if(!enabledMods.includes(libraryMod)) {
|
|||
|
||||
|
||||
|
||||
} else {
|
||||
if(!enabledMods.includes(libraryMod)) { enabledMods.splice(enabledMods.indexOf(modName),0,libraryMod) };
|
||||
if(!enabledMods.includes(colorOffsetMod)) { enabledMods.splice(enabledMods.indexOf(modName),0,colorOffsetMod) };
|
||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
||||
alert(`The "${libraryMod}" and "${colorOffsetMod}" mods are required and have been automatically inserted (reload for this to take effect).`)
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue