mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
Don't do case lookups when we have the right case already.
This is a missed part of the original "[Bleeding] Use case from player data for OfflinePlayer. Fixes BUKKIT-519" commit. It avoids doing (somewhat expensive) lookups of player data to find the correct capitalization inside getOfflinePlayers() as we're already loading their name from the player data and thus have the correct capitalization. By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
parent
ee562e8e61
commit
4ef13fbc4c
1 changed files with 1 additions and 1 deletions
|
@ -1178,7 +1178,7 @@ public final class CraftServer implements Server {
|
|||
Set<OfflinePlayer> players = new HashSet<OfflinePlayer>();
|
||||
|
||||
for (String file : files) {
|
||||
players.add(getOfflinePlayer(file.substring(0, file.length() - 4)));
|
||||
players.add(getOfflinePlayer(file.substring(0, file.length() - 4), false));
|
||||
}
|
||||
players.addAll(Arrays.asList(getOnlinePlayers()));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue