Skip to content

Commit

Permalink
Ignore double clicks in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
56738 committed Oct 5, 2024
1 parent 9249cea commit 5c57c17
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5c57c17

Please sign in to comment.