13
0
geforkt von Mirrors/Paper

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())); players.addAll(Arrays.asList(getOnlinePlayers()));
return (OfflinePlayer[]) players.toArray(); return players.toArray(new OfflinePlayer[players.size()]);
} }
} }