summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-05-16 00:04:40 -0400
committerEvilSeph <evilseph@unaligned.org>2011-05-16 00:04:40 -0400
commit8de2b52a025051952feb8a70343607e77402f4ae (patch)
tree05919523bc64b0726a80361c661280183795b95c /src
parent27e75c358d4704afed39c20bbdaf07dd39209d67 (diff)
downloadcraftbukkit-8de2b52a025051952feb8a70343607e77402f4ae.tar
craftbukkit-8de2b52a025051952feb8a70343607e77402f4ae.tar.gz
craftbukkit-8de2b52a025051952feb8a70343607e77402f4ae.tar.lz
craftbukkit-8de2b52a025051952feb8a70343607e77402f4ae.tar.xz
craftbukkit-8de2b52a025051952feb8a70343607e77402f4ae.zip
Removed double firing of EntityDamage events by arrows. Thanks sunkid!
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/EntityHuman.java4
1 files changed, 0 insertions, 4 deletions
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) {