mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +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 By: Andrew Ardill <andrew.ardill@gmail.com>
This commit is contained in:
parent
06fe4d6b9a
commit
11d06bdb64
1 changed files with 1 additions and 1 deletions
|
@ -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()]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue