Increase distance for approximate check before sending packets

This commit is contained in:
filoghost 2021-05-06 21:13:00 +02:00
parent 29d43525b4
commit fe54ed7dc7

View File

@ -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() {