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
@@ -178,6 +178,7 @@ public class EntityFishingHook extends Entity {
|
||||
}
|
||||
|
||||
if (movingobjectposition != null) {
|
||||
org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this); // Craftbukkit - Call event
|
||||
if (movingobjectposition.entity != null) {
|
||||
if (movingobjectposition.entity.damageEntity(DamageSource.projectile(this, this.owner), 0)) {
|
||||
this.hooked = movingobjectposition.entity;
|
||||
|
||||
Reference in new issue
Block a user