aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch
diff options
context:
space:
mode:
authorLulu13022002 <[email protected]>2024-06-24 00:42:44 +0200
committerGitHub <[email protected]>2024-06-24 00:42:44 +0200
commitb99d071a362bbfd708f5aa09318546f6dd1874c6 (patch)
tree33d81c87c0fced3a15cf653125385acb237afca4 /patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch
parent1d3fc0ee68be1672780a2c65d1814b52d412a070 (diff)
downloadPaper-b99d071a362bbfd708f5aa09318546f6dd1874c6.tar.gz
Paper-b99d071a362bbfd708f5aa09318546f6dd1874c6.zip
Swap some nullable annotations (#10960)
Diffstat (limited to 'patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch')
-rw-r--r--patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch b/patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch
index 420b0ca896..21f357efaf 100644
--- a/patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch
+++ b/patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch
@@ -6,7 +6,7 @@ Subject: [PATCH] EntityShootBowEvent consumeArrow and getArrowItem API
Adds ability to get what arrow was shot, and control if it should be consumed.
diff --git a/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java b/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java
-index 1a8366f6757431baaba4f3d48abea3cf0ec1f1ad..1cde639c5dc7e746209488b1a58c2a81080ab3d7 100644
+index 1a8366f6757431baaba4f3d48abea3cf0ec1f1ad..e4efcd757ca51a4edd396f55c812dbe89ffb68c7 100644
--- a/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java
+++ b/src/main/java/org/bukkit/event/entity/EntityShootBowEvent.java
@@ -22,7 +22,32 @@ public class EntityShootBowEvent extends EntityEvent implements Cancellable {
@@ -24,7 +24,7 @@ index 1a8366f6757431baaba4f3d48abea3cf0ec1f1ad..1cde639c5dc7e746209488b1a58c2a81
+ return this.shouldConsumeItem();
+ }
+
-+ @NotNull @Deprecated
++ @Nullable @Deprecated
+ public ItemStack getArrowItem() {
+ return this.getConsumable();
+ }