From 5dc2ca5b62de3f460bc580c0228c42791ccb5b2d Mon Sep 17 00:00:00 2001 From: Tamion <70228790+notTamion@users.noreply.github.com> Date: Tue, 23 Jul 2024 18:37:12 +0200 Subject: [PATCH] Fix PickupStatus getting reset --- .../src/main/java/org/bukkit/entity/AbstractArrow.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/AbstractArrow.java b/paper-api/src/main/java/org/bukkit/entity/AbstractArrow.java index 88b8f2e81c..e63353ff70 100644 --- a/paper-api/src/main/java/org/bukkit/entity/AbstractArrow.java +++ b/paper-api/src/main/java/org/bukkit/entity/AbstractArrow.java @@ -272,4 +272,14 @@ public interface AbstractArrow extends Projectile { */ void setHitSound(@NotNull org.bukkit.Sound sound); // Paper end - more projectile API + + // Paper start - Fix PickupStatus getting reset + /** + * Set the shooter of this projectile. + * + * @param source the {@link org.bukkit.projectiles.ProjectileSource} that shot this projectile + * @param resetPickupStatus whether the {@link org.bukkit.entity.AbstractArrow.PickupStatus} should be reset + */ + void setShooter(@Nullable org.bukkit.projectiles.ProjectileSource source, boolean resetPickupStatus); + // Paper end - Fix PickupStatus getting reset }