Update flipflop.js

This commit is contained in:
felixs-alt 2023-09-27 09:03:19 +02:00 committed by GitHub
parent c8ea492073
commit 132dfa2a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ elements.flipflop = {
let Output = pixelMap[pixel.x+1][pixel.y]
let Input = pixelMap[pixel.x-1][pixel.y]
if (typeof Output !== "undefined" && typeof Input !== "undefined") {
if (Input.charge > 0.4) {
if (Input.charge > 0.7) {
if (pixel.powerstate == "true") {
Input.charge = 0
pixel.powerstate = "false"