From 60cc14e83cd58ca518e1f2c2791f8944d5f0cea4 Mon Sep 17 00:00:00 2001 From: BlackStar8107 Date: Wed, 8 May 2024 01:31:52 +0100 Subject: [PATCH] fix: repeater ic tiles skipping power off delay --- .../projectred/fabrication/engine/gates/RepeaterGateTile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabrication/src/main/java/mrtjp/projectred/fabrication/engine/gates/RepeaterGateTile.java b/fabrication/src/main/java/mrtjp/projectred/fabrication/engine/gates/RepeaterGateTile.java index 202de9ad4..fc4c07b7d 100644 --- a/fabrication/src/main/java/mrtjp/projectred/fabrication/engine/gates/RepeaterGateTile.java +++ b/fabrication/src/main/java/mrtjp/projectred/fabrication/engine/gates/RepeaterGateTile.java @@ -135,7 +135,7 @@ public void compute(ICSimulation ic, int[] inputs, int[] outputs) { } } case 3 -> { // Waiting for timer to go low - if (readSchedTime(ic, inputs) >= readSchedTime(ic, inputs)) { // if timer expired + if (readSysTime(ic, inputs) >= readSchedTime(ic, inputs)) { // if timer expired writeState(ic, outputs, (byte) 0); // go to state 0 writeOutput(ic, outputs, (byte) 0); // set output low writeSchedTime(ic, outputs, -1); // disable timer