Do the same for the entity method

This commit is contained in:
Sam 2017-10-12 13:55:04 +01:00
parent 927078d9f5
commit b0b581bb0b

View File

@ -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;