mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Improve calling of ProjectileHitEvent. Fixes BUKKIT-3872
This commit is contained in:
1 parent
45d3e2514d
commit
08f3df82eb
5 files changed
+10
-15
No files matched your search
@@ -2,8 +2,6 @@ package net.minecraft.server;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.event.entity.ProjectileHitEvent; // CraftBukkit
|
||||
|
||||
public abstract class EntityProjectile extends Entity implements IProjectile {
|
||||
|
||||
private int blockX = -1;
|
||||
@@ -158,8 +156,7 @@ public abstract class EntityProjectile extends Entity implements IProjectile {
|
||||
this.a(movingobjectposition);
|
||||
// CraftBukkit start
|
||||
if (this.dead) {
|
||||
ProjectileHitEvent hitEvent = new ProjectileHitEvent((org.bukkit.entity.Projectile) this.getBukkitEntity());
|
||||
org.bukkit.Bukkit.getPluginManager().callEvent(hitEvent);
|
||||
org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this);
|
||||
}
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user