Add ability to resolve unsafe positions by UUID where the identifier would otherwise be unsafe (#356)

This commit is contained in:
William authored and GitHub committed 2023-04-16 16:48:08 +01:00
1 parent 4bd0244891
commit 3c18214016
26 files changed
+188 -60

No files matched your search

@@ -65,8 +65,7 @@ public class HomesManager {
@NotNull
public List<String> getUserHomeNames() {
return userHomes.entrySet().stream()
.flatMap(e -> e.getValue().stream()
.map(home -> home.getOwner().getUsername() + "." + home.getName()))
.flatMap(e -> e.getValue().stream().map(Home::getIdentifier))
.toList();
}
@@ -83,7 +82,7 @@ public class HomesManager {
@NotNull
public List<String> getPublicHomeNames() {
return publicHomes.stream()
.map(home -> home.getOwner().getUsername() + "." + home.getName())
.map(Home::getIdentifier)
.toList();
}