From 6b9fc806ab4c19900b928887d2bf3b609a01b056 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername Date: Wed, 24 Jan 2024 14:41:50 -0500 Subject: [PATCH] hhhhhhhhhhhhhhhhhhhhhh --- mods/logicgates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/logicgates.js b/mods/logicgates.js index 3d545a45..c3002c58 100644 --- a/mods/logicgates.js +++ b/mods/logicgates.js @@ -105,7 +105,7 @@ function countNeighbors(){ if (!isEmpty(x,y, true)) { var otherPixel = pixelMap[x][y]; if (otherPixel.element == "logic_wire"){ - if (otherPixel.lstate){ + if (otherPixel.lstate > 0){ results.charged = results.charged + 1; } else { results.uncharged = results.uncharged + 1;