Update switches.js
This commit is contained in:
parent
39824f41d5
commit
e6d09e79b0
|
|
@ -1,7 +1,14 @@
|
||||||
var modName = "mods/switches.js";
|
// var modName = "mods/switches.js";
|
||||||
var formerlyNoConductMod = "mods/doElectricity changes.js";
|
// var formerlyNoConductMod = "mods/doElectricity changes.js";
|
||||||
|
|
||||||
|
// if(enabledMods.includes(formerlyNoConductMod)) {
|
||||||
|
|
||||||
|
// } else {
|
||||||
|
// enabledMods.splice(enabledMods.indexOf(modName),0,formerlyNoConductMod)
|
||||||
|
// alert(`The ${formerlyNoConductMod} mod is required and has been automatically inserted (reload for this to take effect).`)
|
||||||
|
// localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
||||||
|
// };
|
||||||
|
|
||||||
if(enabledMods.includes(formerlyNoConductMod)) {
|
|
||||||
elements.switch_off = {
|
elements.switch_off = {
|
||||||
name: "switch (off)",
|
name: "switch (off)",
|
||||||
color: "#7F3333",
|
color: "#7F3333",
|
||||||
|
|
@ -44,8 +51,3 @@ if(enabledMods.includes(formerlyNoConductMod)) {
|
||||||
noConduct: ["switch_on","switch_off"],
|
noConduct: ["switch_on","switch_off"],
|
||||||
category: "machines",
|
category: "machines",
|
||||||
};
|
};
|
||||||
} else {
|
|
||||||
enabledMods.splice(enabledMods.indexOf(modName),0,formerlyNoConductMod)
|
|
||||||
alert(`The ${formerlyNoConductMod} mod is required and has been automatically inserted (reload for this to take effect).`)
|
|
||||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
|
||||||
};
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue