mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-24 17:11:55 +01:00
Fix Citizens being regarded as players when attacking and attacked
This commit is contained in:
parent
cef9169b54
commit
e4f573e3b8
@ -154,6 +154,9 @@ public class DPlayerListener implements Listener {
|
||||
if (attackerEntity instanceof Player && attackedEntity instanceof Player) {
|
||||
attackerPlayer = (Player) attackerEntity;
|
||||
attackedPlayer = (Player) attackedEntity;
|
||||
if (attackedPlayer.hasMetadata("NPC") || attackerPlayer.hasMetadata("NPC")) {
|
||||
return;
|
||||
}
|
||||
|
||||
attackerDGroup = DGroup.getByPlayer(attackerPlayer);
|
||||
attackedDGroup = DGroup.getByPlayer(attackedPlayer);
|
||||
|
Loading…
Reference in New Issue
Block a user