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 +};