Remove unnecessary location clone
This commit is contained in:
parent
8954b9d1e2
commit
c72f6c00a7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user