geforkt von Mirrors/Paper
Fixed bow drawback not affecting arrow damage.
Dieser Commit ist enthalten in:
Ursprung
456ce51711
Commit
88e57fbf2d
@ -188,7 +188,7 @@ public class EntityArrow extends Entity {
|
|||||||
Projectile projectile = (Projectile) this.getBukkitEntity();
|
Projectile projectile = (Projectile) this.getBukkitEntity();
|
||||||
// TODO deal with arrows being fired from a non-entity
|
// 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);
|
server.getPluginManager().callEvent(event);
|
||||||
this.shooter = (projectile.getShooter() == null) ? null : ((CraftLivingEntity) projectile.getShooter()).getHandle();
|
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());
|
stick = movingobjectposition.entity.damageEntity(DamageSource.arrow(this, this.shooter), event.getDamage());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
stick = movingobjectposition.entity.damageEntity(DamageSource.arrow(this, this.shooter), 4);
|
stick = movingobjectposition.entity.damageEntity(DamageSource.arrow(this, this.shooter), l);
|
||||||
}
|
}
|
||||||
if (stick) {
|
if (stick) {
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren