From 8fe90dede7364a3c4aec17c4ef191b946f43d96e Mon Sep 17 00:00:00 2001 From: Hy3z <61559158+Hy3z@users.noreply.github.com> Date: Fri, 12 Apr 2024 21:19:55 +0200 Subject: [PATCH] [ci skip] Referenced InventoryDragEvent in documentation of InventoryClickEvent (#10395) --- patches/api/0056-Fix-upstream-javadocs.patch | 12 +++++++++--- .../api/0173-Fix-Spigot-annotation-mistakes.patch | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/patches/api/0056-Fix-upstream-javadocs.patch b/patches/api/0056-Fix-upstream-javadocs.patch index f221402975..f31a77e295 100644 --- a/patches/api/0056-Fix-upstream-javadocs.patch +++ b/patches/api/0056-Fix-upstream-javadocs.patch @@ -850,10 +850,16 @@ index 1440c6115520d692faf75455df35b92aa8734491..0808e7aeffb69160913344de5b5e21d5 public class FurnaceStartSmeltEvent extends InventoryBlockStartEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java -index 79797a2be7fb139d528116d34d13e51d39b96e56..fe58058f9b5d29388d48115cc81dc48ab08c58c1 100644 +index 79797a2be7fb139d528116d34d13e51d39b96e56..f2a2a2ad9930499c5bf624e73571a3294a90db14 100644 --- a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java +++ b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java -@@ -19,9 +19,10 @@ import org.jetbrains.annotations.Nullable; +@@ -16,12 +16,16 @@ import org.jetbrains.annotations.Nullable; + /** + * This event is called when a player clicks in an inventory. + *

++ * In case of a drag action within an inventory, InventoryClickEvent is never called. ++ * Instead, {@link InventoryDragEvent} is called at the end of the drag. ++ *

* Because InventoryClickEvent occurs within a modification of the Inventory, * not all Inventory related methods are safe to use. *

@@ -867,7 +873,7 @@ index 79797a2be7fb139d528116d34d13e51d39b96e56..fe58058f9b5d29388d48115cc81dc48a *