From a825d885f5d7380d2c94534e42bafd22a884ba97 Mon Sep 17 00:00:00 2001 From: "Luis C.M" Date: Fri, 6 May 2022 03:43:53 -0500 Subject: [PATCH] Removed "move" variable from CustomFX. --- src/main/java/noppes/npcs/client/fx/CustomFX.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/noppes/npcs/client/fx/CustomFX.java b/src/main/java/noppes/npcs/client/fx/CustomFX.java index ad7292759..7ed8dc0d0 100644 --- a/src/main/java/noppes/npcs/client/fx/CustomFX.java +++ b/src/main/java/noppes/npcs/client/fx/CustomFX.java @@ -24,10 +24,9 @@ import java.io.IOException; import java.io.InputStream; public class CustomFX extends EntityFX { - private Entity entity = null; + private final Entity entity; private final ResourceLocation location; private static final ResourceLocation resource = new ResourceLocation("textures/particle/particles.png"); - private boolean move = true; private float startX = 0, startY = 0, startZ = 0; public float scale1 = 1.0F; @@ -209,7 +208,7 @@ public class CustomFX extends EntityFX { getURLWidthHeight(); } - if(move && entity != null){ + if(entity != null){ startX = (float)(entity.prevPosX + (entity.posX - entity.prevPosX) * (double)partialTick); startY = (float)(entity.prevPosY + (entity.posY - entity.prevPosY) * (double)partialTick); startZ = (float)(entity.prevPosZ + (entity.posZ - entity.prevPosZ) * (double)partialTick);