From 48798ff9b37857a8c9e780a4c091acaf8ee24e6d Mon Sep 17 00:00:00 2001 From: fullwall Date: Thu, 21 Apr 2022 15:27:46 +0800 Subject: [PATCH] Abs diff --- main/src/main/java/net/citizensnpcs/trait/HologramTrait.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/java/net/citizensnpcs/trait/HologramTrait.java b/main/src/main/java/net/citizensnpcs/trait/HologramTrait.java index a00d13d8b..5ecd3390f 100644 --- a/main/src/main/java/net/citizensnpcs/trait/HologramTrait.java +++ b/main/src/main/java/net/citizensnpcs/trait/HologramTrait.java @@ -212,7 +212,7 @@ public class HologramTrait extends Trait { } boolean update = currentLoc.getWorld() != npc.getStoredLocation().getWorld() || currentLoc.distance(npc.getStoredLocation()) >= 0.001 || lastNameplateVisible != nameplateVisible - || (lastEntityHeight - getEntityHeight()) >= 0.05; + || Math.abs(lastEntityHeight - getEntityHeight()) >= 0.05; lastNameplateVisible = nameplateVisible; if (update) {