From 0e9b52edc5be3a5f8fdfc2b42500c2c50c9bbd2d Mon Sep 17 00:00:00 2001 From: felixs-alt <114471609+felixs-alt@users.noreply.github.com> Date: Tue, 26 Sep 2023 13:39:19 +0200 Subject: [PATCH] Update flipflop.js --- mods/flipflop.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/flipflop.js b/mods/flipflop.js index b96ae2cc..6fef2f84 100644 --- a/mods/flipflop.js +++ b/mods/flipflop.js @@ -6,7 +6,6 @@ elements.flipflop = { color: "#CF300D", state: "solid", category: "machines", - conduct: 1, tick: function(pixel) { doHeat(pixel) doBurning(pixel) @@ -17,12 +16,12 @@ elements.flipflop = { console.log(pixel.powerstate) if (typeof Output !== "undefined" && typeof Input !== "undefined"){ Output.charge = 0 - if (pixel.powerstate == "true" && pixel.charge > 0.2) { + if (pixel.powerstate == "true" && Input.charge > 0.2) { pixel.powerstate = "false" pixel.color = "#CF300D" console.log(pixel.powerstate+"y") Output.charge = 0 - } else if (pixel.powerstate == "false" && pixel.charge > 0.2) { + } else if (pixel.powerstate == "false" && Input.charge > 0.2) { pixel.powerstate = "true" console.log(pixel.powerstate+"n") pixel.color = "#94CF0D"