restructure dep block

This commit is contained in:
Laetitia (O-01-67) 2023-03-09 15:00:16 -05:00 committed by GitHub
parent 420873c568
commit 50152c12f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3641 additions and 3642 deletions

View File

@ -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).`)
};