mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Because it's not just Citizens that uses NPCs.
This commit is contained in:
@ -336,7 +336,7 @@ public class Combat {
|
||||
|
||||
for (Entity entity : target.getNearbyEntities(2.5, 2.5, 2.5)) {
|
||||
if (entity instanceof Player) {
|
||||
if (Misc.isCitizensNPC((Player) entity)) {
|
||||
if (Misc.isNPC((Player) entity)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ public class Misc {
|
||||
public static final int TIME_CONVERSION_FACTOR = 1000;
|
||||
public static final double SKILL_MESSAGE_MAX_SENDING_DISTANCE = 10.0;
|
||||
|
||||
public static boolean isCitizensNPC(Player player) {
|
||||
public static boolean isNPC(Player player) {
|
||||
if (player == null || Users.getProfile(player) == null || player.hasMetadata("NPC")) {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user