Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
[Bleeding] Fire EntityDamageByEntityEvent for EnderCrystal. Fixes BUKKIT-776
Dieser Commit ist enthalten in:
Ursprung
b06719dd03
Commit
1922672f14
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren