Code cleanup
This commit is contained in:
@@ -26,13 +26,7 @@ public class VisualizeUtil
|
||||
}
|
||||
public static Set<Location> getPlayerLocations(UUID uuid)
|
||||
{
|
||||
Set<Location> ret = playerLocations.get(uuid);
|
||||
if (ret == null)
|
||||
{
|
||||
ret = new HashSet<>();
|
||||
playerLocations.put(uuid, ret);
|
||||
}
|
||||
return ret;
|
||||
return playerLocations.computeIfAbsent(uuid, k -> new HashSet<>());
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
|
Reference in New Issue
Block a user