mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
Removed double firing of EntityDamage events by arrows. Thanks sunkid!
This commit is contained in:
parent
27e75c358d
commit
8de2b52a02
@ -395,10 +395,6 @@ public abstract class EntityHuman extends EntityLiving {
|
||||
} else {
|
||||
Object object = entity;
|
||||
|
||||
if (entity instanceof EntityArrow && ((EntityArrow) entity).shooter != null) {
|
||||
object = ((EntityArrow) entity).shooter;
|
||||
}
|
||||
|
||||
// CraftBukkit start - this is here instead of EntityMonster because EntityLiving(s) that aren't monsters
|
||||
// also damage the player in this way. For example, EntitySlime.
|
||||
if (object instanceof EntityLiving) {
|
||||
|
Loading…
Reference in New Issue
Block a user