mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
Fix PickupStatus getting reset (#11154)
This commit is contained in:
25
patches/api/Fix-PickupStatus-getting-reset.patch
Normal file
25
patches/api/Fix-PickupStatus-getting-reset.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From 0000000000000000000000000000000000000000 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
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/AbstractArrow.java b/src/main/java/org/bukkit/entity/AbstractArrow.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/AbstractArrow.java
|
||||
+++ b/src/main/java/org/bukkit/entity/AbstractArrow.java
|
||||
@@ -0,0 +0,0 @@ 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
|
||||
}
|
Reference in New Issue
Block a user