summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2012-11-18 10:51:52 -0600
committerTravis Watkins <amaranth@ubuntu.com>2012-11-18 10:51:52 -0600
commit58636c2dd8e756f3c7fa88be07fe1a692c18fa42 (patch)
treee58a1b014c36726dca5a1e0144ae2c13e2f7a5f1 /src/main
parent1044c32a54800eb68cef941db3f0c7f4b2831ea8 (diff)
downloadcraftbukkit-58636c2dd8e756f3c7fa88be07fe1a692c18fa42.tar
craftbukkit-58636c2dd8e756f3c7fa88be07fe1a692c18fa42.tar.gz
craftbukkit-58636c2dd8e756f3c7fa88be07fe1a692c18fa42.tar.lz
craftbukkit-58636c2dd8e756f3c7fa88be07fe1a692c18fa42.tar.xz
craftbukkit-58636c2dd8e756f3c7fa88be07fe1a692c18fa42.zip
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.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index e757b437..429320bf 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -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()));