From 1e0447831b687aafaa70c6147b9f9b1ad2f61903 Mon Sep 17 00:00:00 2001 From: An Orbit <68935009+orbit-loona@users.noreply.github.com> Date: Mon, 20 May 2024 12:39:37 -0400 Subject: [PATCH] fix fatal bug --- mods/a_mod_by_alice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/a_mod_by_alice.js b/mods/a_mod_by_alice.js index 51d96361..cbf541e1 100644 --- a/mods/a_mod_by_alice.js +++ b/mods/a_mod_by_alice.js @@ -12719,12 +12719,12 @@ Pixel size (rendering only): (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;