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
This commit is contained in:
Andrew Ardill 2012-01-02 10:25:43 +11:00
parent bcdad9f837
commit 483a619e8a

View File

@ -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()]);
}
}