Removed double firing of EntityDamage events by arrows. Thanks sunkid!

This commit is contained in:
EvilSeph 2011-05-16 00:04:40 -04:00
parent 27e75c358d
commit 8de2b52a02

View File

@ -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) {