density requirement 200+ for squeezing

This commit is contained in:
Laetitia (O-01-67) 2023-02-23 12:57:46 -05:00 committed by GitHub
parent abcea7daad
commit 25684ef889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);