Remove unnecessary location clone

This commit is contained in:
Alexander Meech 2018-06-14 01:22:10 -04:00
parent 8954b9d1e2
commit c72f6c00a7

View File

@ -818,7 +818,7 @@ public abstract class LobbyManager implements Listener
public boolean isNearSpawn(Location location, int distance)
{
// offsetSquared should be compared to squared distance, obviously...
return UtilMath.offsetSquared(_spawn.clone(), location) < distance*distance;
return UtilMath.offsetSquared(_spawn, location) < distance*distance;
}
public boolean isNearSpawn(Location location)