From 51ee1b8538e1f5461d70c347e6527507477c83a8 Mon Sep 17 00:00:00 2001 From: BlackStar8107 Date: Wed, 8 May 2024 01:31:52 +0100 Subject: [PATCH] Fixed Time Comparison Error For Repeaters --- .../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