Update flipflop.js

This commit is contained in:
felixs-alt 2023-09-26 12:13:17 +02:00 committed by GitHub
parent b90b6d90e5
commit a81c89c2d2
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 (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"