PaperMC/paper-server/patches/sources/net/minecraft/world/entity/projectile
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
..
windcharge Add entity knockback events 2018-06-18 15:46:23 +02:00
AbstractArrow.java.patch Fix cancelling ProjectileHitEvent for piercing arrows 2022-02-19 19:05:59 -08:00
AbstractHurtingProjectile.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Arrow.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
DragonFireball.java.patch Fixes and additions to the spawn reason API 2019-03-24 00:24:52 -04:00
EvokerFangs.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
EyeOfEnder.java.patch Change EnderEye target without changing other things 2021-08-21 12:13:53 -07:00
Fireball.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
FireworkRocketEntity.java.patch Firework API's 2016-12-28 07:18:33 +01:00
FishingHook.java.patch Avoid error bubbling up when item stack is empty in fishing loot 2020-10-23 15:01:44 +02:00
LargeFireball.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
LlamaSpit.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Projectile.java.patch Configurable projectile relative velocity 2019-07-23 20:29:20 -05:00
ShulkerBullet.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
SmallFireball.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
Snowball.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
SpectralArrow.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
ThrowableItemProjectile.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
ThrowableProjectile.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
ThrownEgg.java.patch Add ThrownEggHatchEvent 2020-02-09 00:19:05 -06:00
ThrownEnderpearl.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
ThrownExperienceBottle.java.patch ExperienceOrbs API for Reason/Source/Triggering player 2017-12-19 16:31:46 -05:00
ThrownPotion.java.patch Fix potions splash events 2021-05-20 20:40:53 -07:00
ThrownTrident.java.patch Missing Entity API 2021-06-21 23:56:07 -04:00
WitherSkull.java.patch Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00