Making HUD a bit more friendly

This commit is contained in:
nossr50
2012-04-27 23:38:16 -07:00
parent b46997bc1a
commit bd7203dd9c
3 changed files with 4 additions and 3 deletions

View File

@ -106,7 +106,7 @@ public class Users {
*/
public static PlayerProfile getProfileByName(String playerName) {
if (mcMMO.p.getServer().getOfflinePlayer(playerName).isOnline() || players.containsKey(playerName.toLowerCase())) {
if (players.get(playerName.toLowerCase()) != null) {
if (players.containsKey(playerName.toLowerCase())) {
return players.get(playerName.toLowerCase());
}
else {