From efaf9344993e6b62e23b601313edca0176a754f1 Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Wed, 30 Jun 2021 15:11:15 -0400 Subject: [PATCH] 2.18.2 - fixed minor sell gui bug --- pom.xml | 2 +- src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5dc8548..227dd11 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 ca.tweetzy auctionhouse - 2.18.1 + 2.18.2 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 79fb2d3..d35272d 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java @@ -146,6 +146,10 @@ public class GUISellItem extends Gui { } setButton(3, 5, ConfigurationItemHelper.createConfigurationItem(this.isBiddingItem ? Settings.GUI_SELL_ITEMS_BIDDING_ENABLED_ITEM.getString() : Settings.GUI_SELL_ITEMS_BIDDING_DISABLED_ITEM.getString(), this.isBiddingItem ? Settings.GUI_SELL_ITEMS_BIDDING_ENABLED_NAME.getString() : Settings.GUI_SELL_ITEMS_BIDDING_DISABLED_NAME.getString(), this.isBiddingItem ? Settings.GUI_SELL_ITEMS_BIDDING_ENABLED_LORE.getStringList() : Settings.GUI_SELL_ITEMS_BIDDING_DISABLED_LORE.getStringList(), null), e -> { + if (!Settings.ALLOW_USAGE_OF_BID_SYSTEM.getBoolean()) { + return; + } + this.isBiddingItem = !this.isBiddingItem; setTheItemToBeListed(); draw();