mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-25 18:47:40 +01:00
Abs diff
This commit is contained in:
parent
e82eb76aba
commit
48798ff9b3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user