From 65cf7ffe77861179aa25fddf64f8e158c9293e2c Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 18 Jun 2023 18:20:21 +0200 Subject: [PATCH] Auto reshow on MicroMotion Signed-off-by: yoyosource --- .../src/de/steamwar/bausystem/features/tracer/show/Record.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/Record.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/Record.java index 82844113..09d0e832 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/Record.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/Record.java @@ -65,6 +65,9 @@ public class Record { Vector velocity = position.getVelocity(); if (velocity.getY() == 0 && (velocity.getX() != 0 || velocity.getZ() != 0) && (Math.abs(velocity.getX()) < 0.001 || Math.abs(velocity.getZ()) < 0.001)) { + if (!tntRecord.hasMicroMotion) { + positions.forEach(tntPosition -> TraceShowManager.show(region, tntPosition)); + } tntRecord.hasMicroMotion = true; } }