categories

stan stay c stan stay c stan stay c stan stay c stan stay c stan stay c stan stay c stan stay c stan stay c stan stay c stan stay c
This commit is contained in:
Laetitia (O-01-67) 2023-01-30 12:26:55 -05:00 committed by GitHub
parent 039290138a
commit 5fe51f1558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,7 @@ if(enabledMods.includes(noConductMod)) {
color: "#7F3333",
behavior: behaviors.WALL,
noConduct: ["switch_on_control","switch_off_control"],
category: "machines",
};
elements.switch_on = {
@ -15,6 +16,7 @@ if(enabledMods.includes(noConductMod)) {
behavior: behaviors.WALL,
conduct: 1,
noConduct: ["switch_on_control","switch_off_control"],
category: "machines",
};
elements.switch_off_control = {
@ -27,6 +29,7 @@ if(enabledMods.includes(noConductMod)) {
],
conduct: 1,
noConduct: ["switch_on","switch_off"],
category: "machines",
};
elements.switch_on_control = {
@ -39,9 +42,10 @@ if(enabledMods.includes(noConductMod)) {
],
conduct: 1,
noConduct: ["switch_on","switch_off"],
category: "machines",
};
} else {
enabledMods.splice(enabledMods.indexOf(modName),0,noConductMod)
alert(`The ${noConductMod} mod is required and has been automatically inserted (reload for this to take effect).`)
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
};
};