mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 13:36:44 +01:00
[Bleeding] Fire EntityDamageByEntityEvent for EnderCrystal. Fixes BUKKIT-776
This commit is contained in:
parent
b06719dd03
commit
1922672f14
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ public class CraftEventFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean handleProjectileEvent(Projectile projectile, Entity target, DamageSource damagesource, int damage) {
|
public static boolean handleProjectileEvent(Projectile projectile, Entity target, DamageSource damagesource, int damage) {
|
||||||
if (target instanceof EntityLiving || target instanceof EntityComplexPart) {
|
if (target instanceof EntityLiving || target instanceof EntityComplexPart || target instanceof EntityEnderCrystal) {
|
||||||
org.bukkit.entity.Entity damagee = target.getBukkitEntity();
|
org.bukkit.entity.Entity damagee = target.getBukkitEntity();
|
||||||
|
|
||||||
EntityDamageByEntityEvent event = new EntityDamageByEntityEvent(projectile, damagee, EntityDamageEvent.DamageCause.PROJECTILE, damage);
|
EntityDamageByEntityEvent event = new EntityDamageByEntityEvent(projectile, damagee, EntityDamageEvent.DamageCause.PROJECTILE, damage);
|
||||||
|
|
Loading…
Reference in a new issue