From 25684ef889bfcdd794cc469d7204397c9d07255d Mon Sep 17 00:00:00 2001 From: "Laetitia (O-01-67)" <68935009+O-01-67@users.noreply.github.com> Date: Thu, 23 Feb 2023 12:57:46 -0500 Subject: [PATCH] density requirement 200+ for squeezing --- mods/sponge_edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/sponge_edit.js b/mods/sponge_edit.js index f95396cb..8fd24da6 100644 --- a/mods/sponge_edit.js +++ b/mods/sponge_edit.js @@ -40,7 +40,7 @@ if(enabledMods.includes(onTryMoveIntoMod) && enabledMods.includes(libraryMod)) { return false; }; var otherInfo = elements[otherPixel.element] - if((otherInfo.state ?? "solid") == "solid") { + if((otherInfo.state ?? "solid") == "solid" && (otherInfo.density ?? 1000) >= 200) { //console.log(otherPixel.element,otherInfo.state); var outputOffsets = [pixel.x - otherPixel.x, pixel.y - otherPixel.y]; var twiceOffsets = outputOffsets.map(x => x * 2); @@ -73,4 +73,4 @@ if(enabledMods.includes(onTryMoveIntoMod) && enabledMods.includes(libraryMod)) { enabledMods.splice(enabledMods.indexOf(modName),0,libraryMod); localStorage.setItem("enabledMods", JSON.stringify(enabledMods)); alert(`The ${onTryMoveIntoMod} mod and ${libraryMod} mods are required and have been automatically inserted (reload for this to take effect).`); -}; \ No newline at end of file +};