This commit is contained in:
An Orbit 2023-05-07 15:48:21 -04:00 committed by GitHub
parent 0558726c46
commit 067836312a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
var modName = "mods/switches.js"; var modName = "mods/switches.js";
var noConductMod = "mods/noConduct.js"; var formerlyNoConductMod = "mods/doElectricity changes.js";
if(enabledMods.includes(noConductMod)) { if(enabledMods.includes(formerlyNoConductMod)) {
elements.switch_off = { elements.switch_off = {
name: "switch (off)", name: "switch (off)",
color: "#7F3333", color: "#7F3333",
@ -45,7 +45,7 @@ if(enabledMods.includes(noConductMod)) {
category: "machines", category: "machines",
}; };
} else { } else {
enabledMods.splice(enabledMods.indexOf(modName),0,noConductMod) enabledMods.splice(enabledMods.indexOf(modName),0,formerlyNoConductMod)
alert(`The ${noConductMod} mod is required and has been automatically inserted (reload for this to take effect).`) alert(`The ${formerlyNoConductMod} mod is required and has been automatically inserted (reload for this to take effect).`)
localStorage.setItem("enabledMods", JSON.stringify(enabledMods)); localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
}; };