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