ignore the min time limit on custom time value (-t)

Took 2 minutes
This commit is contained in:
Kiran Hart 2022-07-20 21:26:35 -04:00
parent c18b7e402f
commit 64e1da88df
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -259,7 +259,7 @@ public final class CommandSell extends AbstractCommand {
}
// update the listing time to the max allowed time if it wasn't set using the command flag
allowedTime = auctionPlayer.getAllowedSellTime(isBiddingItem ? AuctionSaleType.USED_BIDDING_SYSTEM : AuctionSaleType.WITHOUT_BIDDING_SYSTEM);
allowedTime = allowedTime != 0 ? allowedTime : auctionPlayer.getAllowedSellTime(isBiddingItem ? AuctionSaleType.USED_BIDDING_SYSTEM : AuctionSaleType.WITHOUT_BIDDING_SYSTEM);
if (isBundle) {
AuctionHouse.getInstance().getGuiManager().showGUI(player, new GUIBundleCreation(