mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-22 05:25:11 +01:00
2.20.1 - Fixed right click issue with sell gui
This commit is contained in:
parent
42e7faf7b4
commit
d4b3147fed
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>ca.tweetzy</groupId>
|
||||
<artifactId>auctionhouse</artifactId>
|
||||
<version>2.20.0</version>
|
||||
<version>2.20.1</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user