Removed unwanted profile check in isNPCPlayer

Is the profile is null, it may be our fault, and because of this check
we would never know about it.
This commit is contained in:
bm01
2013-02-03 13:27:47 +01:00
parent 97d47c19b7
commit f51bdad6b4
4 changed files with 20 additions and 30 deletions

View File

@ -102,15 +102,7 @@ public final class Misc {
}
public static boolean isNPCPlayer(Player player) {
if (player == null || Users.getProfile(player) == null || player.hasMetadata("NPC")) {
return true;
}
return false;
}
public static boolean isNPCPlayer(Player player, PlayerProfile profile) {
if (player == null || profile == null || player.hasMetadata("NPC")) {
if (player == null || player.hasMetadata("NPC")) {
return true;
}