From 5c57c17bb756dd7cf7537a01181f0d18c49fa65e Mon Sep 17 00:00:00 2001 From: 56738 Date: Sat, 5 Oct 2024 09:09:41 +0200 Subject: [PATCH] Ignore double clicks in menu --- .../main/java/me/m56738/easyarmorstands/menu/MenuListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easyarmorstands-plugin/src/main/java/me/m56738/easyarmorstands/menu/MenuListener.java b/easyarmorstands-plugin/src/main/java/me/m56738/easyarmorstands/menu/MenuListener.java index f7c8fa68..a7b27f5a 100644 --- a/easyarmorstands-plugin/src/main/java/me/m56738/easyarmorstands/menu/MenuListener.java +++ b/easyarmorstands-plugin/src/main/java/me/m56738/easyarmorstands/menu/MenuListener.java @@ -11,6 +11,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; +import org.bukkit.event.inventory.ClickType; import org.bukkit.event.inventory.DragType; import org.bukkit.event.inventory.InventoryAction; import org.bukkit.event.inventory.InventoryClickEvent; @@ -194,7 +195,7 @@ private SingleClick(Menu menu, InventoryClickEvent event) { @Override public boolean isLeftClick() { - return event.isLeftClick(); + return event.isLeftClick() && event.getClick() != ClickType.DOUBLE_CLICK; } @Override