PaperMC/paper-server
Jake Potrebic c6b07ad816 Fix cancelling ProjectileHitEvent for piercing arrows
Piercing arrows search for multiple entities inside a while
loop that is checking the projectile entity's removed state.
If the hit event is cancelled on the first entity, the event will
be called over and over again inside that while loop until the event
is not cancelled. The solution here, is to make use of an
already-existing field on AbstractArrow for tracking entities hit by
piercing arrows to avoid duplicate damage being applied.

== AT ==
protected net.minecraft.world.entity.projectile.Projectile hitCancelled
2022-02-19 19:05:59 -08:00
..
patches/sources Fix cancelling ProjectileHitEvent for piercing arrows 2022-02-19 19:05:59 -08:00
src Expose furnace minecart push values 2022-03-05 20:58:46 +01:00
.gitignore Setup Gradle project 2020-12-10 20:54:19 -08:00
build.gradle.kts Implement Mob Goal API 2020-01-03 16:26:19 +01:00
LGPL.txt
LICENCE.txt