mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-20 01:15:15 +01:00
Increase distance for approximate check before sending packets
This commit is contained in:
parent
29d43525b4
commit
fe54ed7dc7
@ -91,7 +91,7 @@ public class ProtocolLibHook {
|
||||
Location playerLocation = player.getLocation();
|
||||
double distanceSquared = Utils.distanceSquared(playerLocation.getX(), hologram.getX(), playerLocation.getZ(), hologram.getZ());
|
||||
|
||||
return distanceSquared < 64 * 64;
|
||||
return distanceSquared < 128 * 128; // Approximate, more checks are done for single entities
|
||||
}
|
||||
|
||||
public static boolean isEnabled() {
|
||||
|
Loading…
Reference in New Issue
Block a user