From 38bb687c5b26c37cce76c348f50e5ba119f3c4b7 Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Thu, 4 Jul 2024 15:33:40 +0200 Subject: [PATCH 1/2] fix(tracer): Fixed wrong velocity taken in advanced flag --- .../steamwar/bausystem/features/tracer/rendering/ViewFlag.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/ViewFlag.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/ViewFlag.java index 8702a607..f86c99d8 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/ViewFlag.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/ViewFlag.java @@ -123,6 +123,7 @@ public abstract class ViewFlag { if (prev.isEmpty()) continue; TNTPoint previous = prev.get(); + Vector previousVelocity = previous.getVelocity(); Location delta = representative.getLocation().clone().subtract(previous.getLocation()); @@ -133,7 +134,7 @@ public abstract class ViewFlag { } Location secoundLocation; - if (delta.getX() >= delta.getZ()) { + if (previousVelocity.getX() >= previousVelocity.getZ()) { secoundLocation = previous.getLocation().clone().add(delta.getX(), delta.getY(), 0); } else { secoundLocation = previous.getLocation().clone().add(0, delta.getY(), delta.getZ()); -- 2.39.2 From e253e1299473f7c272b122cdfd8b267bc71e93b2 Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Thu, 4 Jul 2024 17:15:19 +0200 Subject: [PATCH 2/2] use fixed ci --- .../steamwar/bausystem/features/tracer/rendering/ViewFlag.java | 1 - 1 file changed, 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/ViewFlag.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/ViewFlag.java index f86c99d8..088aee4e 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/ViewFlag.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/ViewFlag.java @@ -119,7 +119,6 @@ public abstract class ViewFlag { for (TraceEntity entity : entities) { TNTPoint representative = entity.getRecords().get(0); Optional prev = representative.getPrevious(); - if (prev.isEmpty()) continue; TNTPoint previous = prev.get(); -- 2.39.2