mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Made ProjectileHitEvent fire instantly when projectiles don't hit entities.
This commit is contained in:
@@ -141,12 +141,6 @@ public abstract class Entity {
|
||||
}
|
||||
|
||||
public void die() {
|
||||
// CraftBukkit start
|
||||
if (this.getBukkitEntity() instanceof Projectile && !(this instanceof EntityFish)) {
|
||||
ProjectileHitEvent event = new ProjectileHitEvent((Projectile) this.getBukkitEntity());
|
||||
this.world.getServer().getPluginManager().callEvent(event);
|
||||
}
|
||||
// CraftBukkit end
|
||||
this.dead = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user