🪧 fix cancel bug with "prevent cancellation of bid on items" setting. Closes #74

Took 1 minute
This commit is contained in:
Kiran Hart 2023-10-04 17:18:41 -04:00
parent ab4adc4669
commit d1066d6948
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -92,7 +92,7 @@ public class GUIActiveAuctions extends AbstractPlaceholderGui {
setButton(slot++, item.getDisplayStack(AuctionStackType.ACTIVE_AUCTIONS_LIST), e -> {
switch (e.clickType) {
case LEFT:
if (Settings.SELLERS_MUST_WAIT_FOR_TIME_LIMIT_AFTER_BID.getBoolean()) {
if (Settings.SELLERS_MUST_WAIT_FOR_TIME_LIMIT_AFTER_BID.getBoolean() && item.containsValidBid()) {
AuctionHouse.getInstance().getLocale().getMessage("general.cannot cancel item with bid").sendPrefixedMessage(e.player);
return;
}