fix fatal bug

This commit is contained in:
An Orbit 2024-05-20 12:39:37 -04:00 committed by GitHub
parent 2eb03ae54b
commit 1e0447831b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -12719,12 +12719,12 @@ Pixel size (rendering only): <input id="pixelSize"> (Use if the save looks cut o
};
return true;
};
var canSupportWithEdge = function(x,y) {
function canSupportWithEdge(x,y) {
if(outOfBounds(x,y)) { //count edges
return true;
} else {
if(!isEmpty(x,y,true)) { //if there is a pixel
if(elements[pixelMap[x][y].element].state === "solid") {
if(elements[pixelMap[x][y].element]?.state === "solid") {
return true;
} else {
return false;