diff --git a/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/hologram/tracking/LocationBasedLineTracker.java b/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/hologram/tracking/LocationBasedLineTracker.java index 1bc9f2be..086a3257 100644 --- a/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/hologram/tracking/LocationBasedLineTracker.java +++ b/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/hologram/tracking/LocationBasedLineTracker.java @@ -73,7 +73,10 @@ abstract class LocationBasedLineTracker extends double diffX = Math.abs(playerLocation.getX() - locationX); double diffZ = Math.abs(playerLocation.getZ() - locationZ); - return playerLocation.getWorld() == world && diffX <= (double) ENTITY_VIEW_RANGE && diffZ <= (double) ENTITY_VIEW_RANGE; + return playerLocation.getWorld() == world + && diffX <= (double) ENTITY_VIEW_RANGE + && diffZ <= (double) ENTITY_VIEW_RANGE + && line.getHologram().isVisibleTo(player); } @MustBeInvokedByOverriders