From a81c89c2d21a5898858dfcac22a771fd1afd5341 Mon Sep 17 00:00:00 2001 From: felixs-alt <114471609+felixs-alt@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:13:17 +0200 Subject: [PATCH] Update flipflop.js --- mods/flipflop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/flipflop.js b/mods/flipflop.js index 1efb30d4..639f02cb 100644 --- a/mods/flipflop.js +++ b/mods/flipflop.js @@ -14,7 +14,7 @@ elements.flipflop = { let Output = pixelMap[pixel.x+1][pixel.y] let Input = pixelMap[pixel.x-1][pixel.y] - if (isEmpty(Output.x,Output.y) == false && isEmpty(Input.x,Input.y)){ + if (Output.x != undefined && Input.x != undefined)){ Output.charge = 0 if (Powerstate == "true" && Input.charge > 0.9) { Powerstate == "false"