From c32a3e58bc48bab385d021bbb3c1d726e5f89213 Mon Sep 17 00:00:00 2001 From: An Orbit <68935009+orbit-loona@users.noreply.github.com> Date: Sun, 7 May 2023 15:54:15 -0400 Subject: [PATCH] sex with heejin --- mods/doElectricity changes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/doElectricity changes.js b/mods/doElectricity changes.js index 5316ffb9..df3d3d0a 100644 --- a/mods/doElectricity changes.js +++ b/mods/doElectricity changes.js @@ -13,7 +13,8 @@ function doElectricity(pixel) { var newPixel = pixelMap[x][y]; var con = elements[newPixel.element].conduct; if (con == undefined) {continue} - if (elements[newPixel.element].noConduct?.length && elements[newPixel.element].noConduct.includes(newPixel.element)) {continue}; + var info = elements[pixel.element]; + if (info.noConduct && info.noConduct.includes(newPixel.element)) {continue}; if (Math.random() < con) { // If random number is less than conductivity if (!newPixel.charge && !newPixel.chargeCD) { newPixel.charge = isNaN(pixel.charge) ? 0 : pixel.charge; //Actually set it to the same charge