From 056015395a7251880f1d7f730a4081c442601fe6 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 1 Aug 2022 21:48:34 +0200 Subject: [PATCH] Fix one edge case of RedstonetesterUtils Signed-off-by: yoyosource --- .../features/redstonetester/RedstonetesterUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstonetesterUtils.java b/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstonetesterUtils.java index c0736262..128c79ae 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstonetesterUtils.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstonetesterUtils.java @@ -89,10 +89,10 @@ public class RedstonetesterUtils { tick = null; return; } + if (TPSUtils.currentTick.get() - lastTick > 100) { + tick = null; + } if (loc1.equals(location)) { - if (TPSUtils.currentTick.get() - lastTick > 100) { - tick = null; - } lastTick = TPSUtils.currentTick.get(); if (tick == null) { tick = TPSUtils.currentTick.get();