mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 00:45:27 +01:00
parent
64e1448782
commit
816b08b14a
@ -151,6 +151,10 @@ public class EntityListener implements Listener {
|
||||
|
||||
Entity attacker = event.getDamager();
|
||||
|
||||
if (Misc.isNPCEntity(attacker)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (attacker instanceof Projectile) {
|
||||
attacker = ((Projectile) attacker).getShooter();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user