starting price will be set to min start price or half the buy out if starting price inputed is more than buyout

Took 2 minutes
This commit is contained in:
Kiran Hart 2022-11-25 14:54:34 -05:00
parent 42ecdd682f
commit 685f9d445b
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -222,8 +222,7 @@ public final class GUISellAuction extends AbstractPlaceholderGui {
if (Settings.ALLOW_USAGE_OF_BUY_NOW_SYSTEM.getBoolean() && GUISellAuction.this.allowBuyNow)
if (Settings.BASE_PRICE_MUST_BE_HIGHER_THAN_BID_START.getBoolean() && listingAmount >= GUISellAuction.this.binPrice) {
AuctionHouse.getInstance().getLocale().getMessage("pricing.basepricetoolow").sendPrefixedMessage(player);
return false;
listingAmount = GUISellAuction.this.binPrice / 2 <= 0 ? Settings.MIN_AUCTION_START_PRICE.getDouble() : GUISellAuction.this.binPrice / 2;
}
if (listingAmount < Settings.MIN_AUCTION_START_PRICE.getDouble())