place item gui only returns the tick value instead of doing the currentMillis + 1000L * TICK calc

Took 35 seconds
This commit is contained in:
Kiran Hart 2022-11-18 16:46:49 -05:00
parent 7afb6b1da4
commit c8b55ba1d3
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -101,14 +101,14 @@ public final class GUISellPlaceItem extends AbstractPlaceholderGui {
click.gui.exit();
if (this.listingType == ListingType.BIN)
click.manager.showGUI(click.player, new GUISellBin(this.auctionPlayer, Settings.MIN_AUCTION_PRICE.getDouble(), System.currentTimeMillis() + (1000L * this.auctionPlayer.getAllowedSellTime(AuctionSaleType.WITHOUT_BIDDING_SYSTEM)), false));
click.manager.showGUI(click.player, new GUISellBin(this.auctionPlayer, Settings.MIN_AUCTION_PRICE.getDouble(), this.auctionPlayer.getAllowedSellTime(AuctionSaleType.WITHOUT_BIDDING_SYSTEM), false));
else
click.manager.showGUI(click.player, new GUISellAuction(
this.auctionPlayer,
Settings.MIN_AUCTION_PRICE.getDouble(),
Settings.MIN_AUCTION_START_PRICE.getDouble(),
Settings.MIN_AUCTION_INCREMENT_PRICE.getDouble(),
System.currentTimeMillis() + (1000L * this.auctionPlayer.getAllowedSellTime(AuctionSaleType.USED_BIDDING_SYSTEM)),
this.auctionPlayer.getAllowedSellTime(AuctionSaleType.USED_BIDDING_SYSTEM),
Settings.ALLOW_USAGE_OF_BUY_NOW_SYSTEM.getBoolean()
));
});