Update datawire.js

This commit is contained in:
Alexthetransfem 2025-09-15 21:27:14 -05:00 committed by GitHub
parent eb1d649246
commit 8d10ae9bb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 9 deletions

View File

@ -1,13 +1,7 @@
/* /*
Version 1.0.0 *Version 1.0.0
*/ */
if(!enabledMods.includes("/mods/orchidslibrary.js")){ dependOn("orchidslibrary.js", ()=>{
let continueWithout = confirm("Missing dependency for datawire.js: \"orchidslibrary.js\". Continue without? (cancel will add mod and refresh the page)");
if(!continueWithout){
addMod("/mods/orchidslibrary.js", true);
window.location.reload();
}
} else {
elements.data_wire = { elements.data_wire = {
desc: "Transfers data.", desc: "Transfers data.",
color: ["#6b1502", "#631402", "#6e1400", "#631200"], color: ["#6b1502", "#631402", "#6e1400", "#631200"],
@ -241,4 +235,4 @@ if(!enabledMods.includes("/mods/orchidslibrary.js")){
} }
}; };
} }, true);