mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-24 01:58:16 +01:00
Make hologram trait update more frequently
This commit is contained in:
parent
ef1baf5679
commit
732716215e
@ -188,7 +188,7 @@ public class HologramTrait extends Trait {
|
||||
}
|
||||
}
|
||||
boolean update = currentLoc.getWorld() != npc.getStoredLocation().getWorld()
|
||||
|| currentLoc.distanceSquared(npc.getStoredLocation()) >= 0.01;
|
||||
|| currentLoc.distance(npc.getStoredLocation()) >= 0.001;
|
||||
if (update) {
|
||||
currentLoc = npc.getStoredLocation();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user