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()) {