diff --git a/mods/flipflop.js b/mods/flipflop.js index c5a9ef68..18460574 100644 --- a/mods/flipflop.js +++ b/mods/flipflop.js @@ -13,8 +13,8 @@ elements.flipflop = { let Powerstate = pixel.powerst let Output = pixelMap[pixel.x+1][pixel.y] let Input = pixelMap[pixel.x-1][pixel.y] - console.log(Output) - if (typeof Output !== "null" && typeof Input !== "null"){ + console.log(typeof Output) + if (typeof Output !== "undefined" && typeof Input !== "undefined"){ Output.charge = 0 if (Powerstate == "true" && Input.charge > 0.9) { Powerstate == "false"