From eb1d649246b9173fa9fea872a0d2e7ebf13cb382 Mon Sep 17 00:00:00 2001 From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:26:03 -0500 Subject: [PATCH] Update plants.js --- mods/plants.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/mods/plants.js b/mods/plants.js index aca2cb25..ca38e2a5 100644 --- a/mods/plants.js +++ b/mods/plants.js @@ -1,17 +1,8 @@ /* -Version 2.2.1 +*Version 2.2.1 */ let plants; -if(!enabledMods.includes("/mods/orchidslibrary.js")){ - let continueWithout = confirm("Missing dependency for plants.js: \"orchidslibrary.js\". Continue without? (cancel will add mod and refresh the page)"); - if(!continueWithout){ - addMod("/mods/orchidslibrary.js", true); - window.location.reload(); - } -} else { - let is2d = (arr)=>{ - return arr.some(item => Array.isArray(item)); - } +dependOn("orchidslibrary.js", ()=>{ class growInterval { constructor(seedPixel, pattern, basePos, c = 0.025, dieAfter = undefined, fruit = undefined, elems = undefined){ let currentLength = 0; @@ -1622,4 +1613,4 @@ if(!enabledMods.includes("/mods/orchidslibrary.js")){ }; -} +}, true);