diff options
Diffstat (limited to 'patches/api/0478-Fix-PickupStatus-getting-reset.patch')
-rw-r--r-- | patches/api/0478-Fix-PickupStatus-getting-reset.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/api/0478-Fix-PickupStatus-getting-reset.patch b/patches/api/0478-Fix-PickupStatus-getting-reset.patch new file mode 100644 index 0000000000..6473947708 --- /dev/null +++ b/patches/api/0478-Fix-PickupStatus-getting-reset.patch @@ -0,0 +1,25 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tamion <[email protected]> +Date: Tue, 23 Jul 2024 18:37:12 +0200 +Subject: [PATCH] Fix PickupStatus getting reset + + +diff --git a/src/main/java/org/bukkit/entity/AbstractArrow.java b/src/main/java/org/bukkit/entity/AbstractArrow.java +index 9bf4b86e730f3d066f6ebfd4e516caf78145479e..c6466b22f37beae2ca78d90feaceacd9fb124267 100644 +--- a/src/main/java/org/bukkit/entity/AbstractArrow.java ++++ b/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 + } |