diff options
Diffstat (limited to 'patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch')
-rw-r--r-- | patches/api/0108-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch | 4 |
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(); + } |