Fix fakePlayers of Leaves NPE error
This commit is contained in:
parent
4f0bc6d12f
commit
5f89964f49
@ -28,7 +28,7 @@ public final class PlayerUtils {
|
||||
* @return True if the player is an NPC, false otherwise
|
||||
*/
|
||||
public static boolean isNpc(Player player) {
|
||||
return player.hasMetadata("NPC");
|
||||
return player.hasMetadata("NPC") || player.getAddress() == null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user