From 45cc3abd0adaf49a8ed3bfb8bec9922f83d6a877 Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Thu, 14 Mar 2024 12:31:17 +0100 Subject: [PATCH] Fixed Advanced flag having gravity --- .../bausystem/features/tracer/rendering/ViewFlag.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 361752fa..7798a679 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 @@ -157,16 +157,14 @@ public abstract class ViewFlag { Vector zVelocity = new Vector(0, 0, example.getVelocity().getZ()); Vector firstVelocity = xVelocity.getX() >= zVelocity.getZ() ? xVelocity : zVelocity; - Vector secondVelocity = xVelocity.getX() <= zVelocity.getZ() ? xVelocity : zVelocity; pos = pos.add(yVelocity); - new RFallingBlockEntity(server, pos, Material.WHITE_STAINED_GLASS); + RFallingBlockEntity y = new RFallingBlockEntity(server, pos, Material.WHITE_STAINED_GLASS); + y.setNoGravity(true); pos = pos.add(firstVelocity); - new RFallingBlockEntity(server, pos, Material.WHITE_STAINED_GLASS); - - pos = pos.add(secondVelocity); - new RFallingBlockEntity(server, pos, Material.WHITE_STAINED_GLASS); + RFallingBlockEntity secound = new RFallingBlockEntity(server, pos, Material.WHITE_STAINED_GLASS); + secound.setNoGravity(true); } } };