Merge pull request #1258 from Cube14yt/main

Bugfix
This commit is contained in:
slweeb 2025-09-28 11:41:10 -04:00 committed by GitHub
commit 2b5becea93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -2182,7 +2182,7 @@ elements.white_hole = {
if (other && other !== pixel) {
let elemDef = elements[other.element];
if (elemDef.hardness === 1 && !other.element === "white_hole") continue;
if (elemDef.hardness === 1) continue;
let dist = Math.sqrt(dx * dx + dy * dy);
@ -3241,7 +3241,7 @@ elements.element_line = {
}
}
if (pixel.dir === 3) {
if (!tryMove(pixel, pixel.x, pixel.y - 1, pixel.clone)) {
if (!tryMove(pixel, pixel.x, pixel.y + 1, pixel.clone)) {
changePixel(pixel, pixel.clone, true)
}
}
@ -3325,3 +3325,4 @@ elements.replace_all_of_element = {
}
}