Skip to content

Commit

Permalink
Fix SnapProxyServer#getServers only returning cached entries and not all
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 committed Mar 18, 2021
1 parent bc15ac8 commit 824db1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public ProxiedPlayer getPlayer(UUID uuid) {

@Override
public Map<String, ServerInfo> getServers() {
return snap.getServers().entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, o -> (ServerInfo) o.getValue()));
return snap.getProxy().getAllServers().stream().map(snap::getServerInfo).collect(Collectors.toMap(SnapServerInfo::getName, s -> s));
}

@Override
Expand Down

0 comments on commit 824db1e

Please sign in to comment.