From 8de2b52a025051952feb8a70343607e77402f4ae Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Mon, 16 May 2011 00:04:40 -0400 Subject: Removed double firing of EntityDamage events by arrows. Thanks sunkid! --- src/main/java/net/minecraft/server/EntityHuman.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/main/java/net/minecraft') diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java index 7bcc0765..af4d72c4 100644 --- a/src/main/java/net/minecraft/server/EntityHuman.java +++ b/src/main/java/net/minecraft/server/EntityHuman.java @@ -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) { -- cgit v1.2.3