From d4b3147fed121f69190f8a116aa9f40ee965a5d7 Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Thu, 15 Jul 2021 15:47:49 -0400 Subject: [PATCH] 2.20.1 - Fixed right click issue with sell gui --- pom.xml | 2 +- src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1ebbbf0..c372b16 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 ca.tweetzy auctionhouse - 2.20.0 + 2.20.1 UTF-8 diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java b/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java index 422f50d..61ac141 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java @@ -54,6 +54,7 @@ public class GUISellItem extends Gui { setDefaultItem(Settings.GUI_SELL_BG_ITEM.getMaterial().parseItem()); setUseLockedCells(true); setAcceptsItems(true); + setAllowDrops(false); setRows(5); draw(); @@ -89,6 +90,7 @@ public class GUISellItem extends Gui { // the draw item that is being listed setButton(1, 4, this.itemToBeListed, e -> { + if (e.clickType == ClickType.RIGHT) e.event.setCancelled(true); // Is the user selling with an item in hand? if (AuctionHouse.getInstance().getAuctionPlayerManager().getSellHolding().containsKey(e.player.getUniqueId())) { if (AuctionHouse.getInstance().getAuctionPlayerManager().getSellHolding().get(e.player.getUniqueId()).getType() != XMaterial.AIR.parseMaterial()) {