mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-27 03:28:45 +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()
|
boolean update = currentLoc.getWorld() != npc.getStoredLocation().getWorld()
|
||||||
|| currentLoc.distance(npc.getStoredLocation()) >= 0.001 || lastNameplateVisible != nameplateVisible
|
|| currentLoc.distance(npc.getStoredLocation()) >= 0.001 || lastNameplateVisible != nameplateVisible
|
||||||
|| (lastEntityHeight - getEntityHeight()) >= 0.05;
|
|| Math.abs(lastEntityHeight - getEntityHeight()) >= 0.05;
|
||||||
lastNameplateVisible = nameplateVisible;
|
lastNameplateVisible = nameplateVisible;
|
||||||
|
|
||||||
if (update) {
|
if (update) {
|
||||||
|
Loading…
Reference in New Issue
Block a user