mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +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
This commit is contained in:
parent
bcdad9f837
commit
483a619e8a
@ -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()]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user