mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
SPIGOT-7968: ProjectileHitEvent not trigerred when arrow hits entity
By: md_5 <git@md-5.net>
This commit is contained in:
parent
9850cb85dd
commit
61ca2bcfef
@ -49,6 +49,15 @@
|
|||||||
this.hasImpulse = true;
|
this.hasImpulse = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@@ -284,7 +298,7 @@
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
- ProjectileDeflection projectiledeflection = this.hitTargetOrDeflectSelf(movingobjectpositionentity);
|
||||||
|
+ ProjectileDeflection projectiledeflection = this.preHitTargetOrDeflectSelf(movingobjectpositionentity); // CraftBukkit - projectile hit event
|
||||||
|
|
||||||
|
this.hasImpulse = true;
|
||||||
|
if (this.getPierceLevel() > 0 && projectiledeflection == ProjectileDeflection.NONE) {
|
||||||
@@ -356,7 +370,7 @@
|
@@ -356,7 +370,7 @@
|
||||||
protected void tickDespawn() {
|
protected void tickDespawn() {
|
||||||
++this.life;
|
++this.life;
|
||||||
|
Loading…
Reference in New Issue
Block a user