mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user