3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

FIX: CraftServer.getOfflinePlayers was not converting set->array well.

An incorrect method was being used to convert from Set<OfflinePlayer>
to OfflinePlayer[].

Relates to BUKIT-404
Dieser Commit ist enthalten in:
Andrew Ardill 2012-01-02 10:25:43 +11:00
Ursprung bcdad9f837
Commit 483a619e8a

Datei anzeigen

@ -938,6 +938,6 @@ public final class CraftServer implements Server {
}
players.addAll(Arrays.asList(getOnlinePlayers()));
return (OfflinePlayer[]) players.toArray();
return players.toArray(new OfflinePlayer[players.size()]);
}
}