From c9bea6dd89f642dbb2bf93911b01f679e03bb94d Mon Sep 17 00:00:00 2001 From: felixs-alt <114471609+felixs-alt@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:44:41 +0200 Subject: [PATCH] Update flipflop.js --- mods/flipflop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/flipflop.js b/mods/flipflop.js index ece81fb6..c00dc367 100644 --- a/mods/flipflop.js +++ b/mods/flipflop.js @@ -17,11 +17,11 @@ elements.flipflop = { if (typeof Output !== "undefined" && typeof Input !== "undefined"){ Output.charge = 0 if (Powerstate == "true" && Input.charge > 0.2) { - Powerstate == "false" + Powerstate = "false" pixel.color = "#CF300D" Output.charge = 0 } else if (Powerstate == false && Input.charge > 0.2) { - Powerstate == true + Powerstate = true pixel.color = "#94CF0D" Output.charge = 5 }