SPIGOT-7968: ProjectileHitEvent not trigerred when arrow hits entity
This commit is contained in:
parent
b75b792ec3
commit
fa85c5e0af
@ -49,6 +49,15 @@
|
||||
this.hasImpulse = true;
|
||||
}
|
||||
} 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 @@
|
||||
protected void tickDespawn() {
|
||||
++this.life;
|
||||
|
Loading…
x
Reference in New Issue
Block a user