mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-27 02:21:20 +01:00
Don't measure distance between worlds
This commit is contained in:
parent
55922168d2
commit
10e1576496
@ -142,7 +142,8 @@ public class HologramTrait extends Trait {
|
||||
nameNPC = createHologram(npc.getFullName(), 0);
|
||||
}
|
||||
}
|
||||
boolean update = currentLoc.distanceSquared(npc.getStoredLocation()) >= 0.01;
|
||||
boolean update = currentLoc.getWorld() != npc.getStoredLocation().getWorld()
|
||||
|| currentLoc.distanceSquared(npc.getStoredLocation()) >= 0.01;
|
||||
if (update) {
|
||||
currentLoc = npc.getStoredLocation();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user