From b773d8f064c9b87bf4b9e860cb7213345cf3299f Mon Sep 17 00:00:00 2001 From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:24:46 -0500 Subject: [PATCH] Update morechemistry.js --- mods/morechemistry.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/mods/morechemistry.js b/mods/morechemistry.js index 247806d1..eb628940 100644 --- a/mods/morechemistry.js +++ b/mods/morechemistry.js @@ -1,14 +1,8 @@ /* -Version 2.2.0 +*Version 2.2.0 */ -if(!enabledMods.includes("/mods/orchidslibrary.js")){ - let continueWithout = confirm("Missing dependency for morechemistry.js: \"orchidslibrary.js\". Continue without? (cancel will add mod and refresh the page)"); - if(!continueWithout){ - addMod("/mods/orchidslibrary.js", true); - window.location.reload(); - } -} else { +dependOn("orchidslibrary.js", ()=>{ elements.cloner.keyInput = "str:clone", elements.ecloner.keyInput = "str:clone", elements.slow_cloner.keyInput = "str:clone", elements.floating_cloner.keyInput = "str:clone"; let xDown = false; elements.copper_sulfate = { @@ -1568,4 +1562,4 @@ if(!enabledMods.includes("/mods/orchidslibrary.js")){ stateLow: "bismuth", temp: 270, }; -}; +}, true);