From 95c8af91e40916cfb2105bfba65aee6c35c22969 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 26 Dec 2021 15:21:27 +0100 Subject: [PATCH] Fix FactoredEntityShowMode for -tick option Signed-off-by: yoyosource --- .../features/tracer/show/mode/FactoredEntityShowMode.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/mode/FactoredEntityShowMode.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/mode/FactoredEntityShowMode.java index a860bb04..a6664124 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/mode/FactoredEntityShowMode.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/show/mode/FactoredEntityShowMode.java @@ -57,7 +57,7 @@ public abstract class FactoredEntityShowMode implements ShowMode { } RoundedPosition roundedPosition = new RoundedPosition(position, factor); AbstractTraceEntity entity = tntEntityMap.computeIfAbsent(roundedPosition, pos -> createEntity(player, position.getLocation(), true)); - entity.display(player, position.isExploded(), showModeParameter.isTicks() ? position.getFuseTicks() : 0); + entity.display(player, position.isExploded(), showModeParameter.isTicks() ? position.getFuseTicks() : -1); return; } if (!showModeParameter.isWater() && position.isExploded() && checkWater(position.getLocation())) { @@ -81,12 +81,12 @@ public abstract class FactoredEntityShowMode implements ShowMode { RoundedPosition roundedPosition = new RoundedPosition(position, factor); AbstractTraceEntity entity = tntEntityMap.computeIfAbsent(roundedPosition, pos -> createEntity(player, position.getLocation(), true)); - entity.display(player, position.isExploded(), showModeParameter.isTicks() ? position.getFuseTicks() : 0); + entity.display(player, position.isExploded(), showModeParameter.isTicks() ? position.getFuseTicks() : -1); applyOnPosition(position, updatePointPosition -> { updateEntityMap.computeIfAbsent(new RoundedPosition(updatePointPosition, factor), pos -> { return createEntity(player, updatePointPosition, false); - }).display(player, false, showModeParameter.isTicks() ? position.getFuseTicks() : 0); + }).display(player, false, showModeParameter.isTicks() ? position.getFuseTicks() : -1); }); }