summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-09-16 06:52:53 -0400
committerEvilSeph <evilseph@gmail.com>2011-09-16 07:11:48 -0400
commit88e57fbf2dcadc65fa1767ce216dfdb2a4e716c7 (patch)
treec1be483a7cc5b335fe8c663fa91de7809141f01d /src/main/java/net
parent456ce5171101bef331dc8c0f594e345288713dae (diff)
downloadcraftbukkit-88e57fbf2dcadc65fa1767ce216dfdb2a4e716c7.tar
craftbukkit-88e57fbf2dcadc65fa1767ce216dfdb2a4e716c7.tar.gz
craftbukkit-88e57fbf2dcadc65fa1767ce216dfdb2a4e716c7.tar.lz
craftbukkit-88e57fbf2dcadc65fa1767ce216dfdb2a4e716c7.tar.xz
craftbukkit-88e57fbf2dcadc65fa1767ce216dfdb2a4e716c7.zip
Fixed bow drawback not affecting arrow damage.
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/EntityArrow.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java/net/minecraft/server/EntityArrow.java
index 0eaafc1e..7f788ec0 100644
--- a/src/main/java/net/minecraft/server/EntityArrow.java
+++ b/src/main/java/net/minecraft/server/EntityArrow.java
@@ -188,7 +188,7 @@ public class EntityArrow extends Entity {
Projectile projectile = (Projectile) this.getBukkitEntity();
// TODO deal with arrows being fired from a non-entity
- EntityDamageByEntityEvent event = new EntityDamageByEntityEvent(projectile, damagee, EntityDamageEvent.DamageCause.PROJECTILE, 4);
+ EntityDamageByEntityEvent event = new EntityDamageByEntityEvent(projectile, damagee, EntityDamageEvent.DamageCause.PROJECTILE, l);
server.getPluginManager().callEvent(event);
this.shooter = (projectile.getShooter() == null) ? null : ((CraftLivingEntity) projectile.getShooter()).getHandle();
@@ -199,7 +199,7 @@ public class EntityArrow extends Entity {
stick = movingobjectposition.entity.damageEntity(DamageSource.arrow(this, this.shooter), event.getDamage());
}
} else {
- stick = movingobjectposition.entity.damageEntity(DamageSource.arrow(this, this.shooter), 4);
+ stick = movingobjectposition.entity.damageEntity(DamageSource.arrow(this, this.shooter), l);
}
if (stick) {
// CraftBukkit end