mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-21 08:17:36 +01:00
Add support for visibility options
This commit is contained in:
parent
6d54e73518
commit
496fd4ae41
@ -73,7 +73,10 @@ abstract class LocationBasedLineTracker<T extends StandardHologramLine> extends
|
|||||||
double diffX = Math.abs(playerLocation.getX() - locationX);
|
double diffX = Math.abs(playerLocation.getX() - locationX);
|
||||||
double diffZ = Math.abs(playerLocation.getZ() - locationZ);
|
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
|
@MustBeInvokedByOverriders
|
||||||
|
Loading…
Reference in New Issue
Block a user