From 6a3f3f8b0a8a4cee6d5e1c23e5afb1a65551b6a0 Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Thu, 18 Apr 2024 17:12:53 +0200 Subject: [PATCH] fixed filters Signed-off-by: D4rkr34lm --- .../bausystem/features/tracer/rendering/BundleFilter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/BundleFilter.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/BundleFilter.java index 475b22ff..640bce74 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/BundleFilter.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/rendering/BundleFilter.java @@ -29,16 +29,16 @@ public enum BundleFilter { LOOSE((TNTPoint a, TNTPoint b) -> { if (a.isExplosion() != b.isExplosion()) return false; - if (a.getLocation().distanceSquared(b.getLocation()) <= BundleFilter.pixelSizeSquared * 8) return false; - if (a.getVelocity().distanceSquared(b.getVelocity()) <= BundleFilter.pixelSizeSquared * 8) return false; + if (a.getLocation().distanceSquared(b.getLocation()) > BundleFilter.pixelSizeSquared * 8) return false; + if (a.getVelocity().distanceSquared(b.getVelocity()) > BundleFilter.pixelSizeSquared * 8) return false; return true; }), DEFAULT((TNTPoint a, TNTPoint b) -> { if (a.isExplosion() != b.isExplosion()) return false; if (a.getTicksSinceStart() != b.getTicksSinceStart()) return null; - if (a.getLocation().distanceSquared(b.getLocation()) <= BundleFilter.pixelSizeSquared) return false; - if (a.getVelocity().distanceSquared(b.getVelocity()) <= BundleFilter.pixelSizeSquared) return false; + if (a.getLocation().distanceSquared(b.getLocation()) > BundleFilter.pixelSizeSquared) return false; + if (a.getVelocity().distanceSquared(b.getVelocity()) > BundleFilter.pixelSizeSquared) return false; return true; }),