Fixed broken hashCode()

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
CraftBukkit/Spigot
2012-05-06 13:39:46 -05:00
parent f7aab5aff2
commit 3776921464
2 changed files with 2 additions and 5 deletions

View File

@@ -125,7 +125,7 @@ public class CraftOfflinePlayer implements OfflinePlayer, ConfigurationSerializa
@Override
public int hashCode() {
int hash = 5;
hash = 97 * hash + (this.getName() != null ? this.getName().hashCode() : 0);
hash = 97 * hash + (this.getName() != null ? this.getName().toLowerCase().hashCode() : 0);
return hash;
}