Do the same for the entity method
This commit is contained in:
parent
927078d9f5
commit
b0b581bb0b
@ -556,7 +556,10 @@ public class UtilPlayer
|
||||
|
||||
public static Player getClosest(Location loc, double maxDist, Entity... ignore)
|
||||
{
|
||||
maxDist *= maxDist;
|
||||
if (maxDist > 0)
|
||||
{
|
||||
maxDist *= maxDist;
|
||||
}
|
||||
|
||||
Player best = null;
|
||||
double bestDist = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user