mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-02-13 18:51:19 +01:00
place item gui only returns the tick value instead of doing the currentMillis + 1000L * TICK calc
Took 35 seconds
This commit is contained in:
parent
7afb6b1da4
commit
c8b55ba1d3
@ -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()
|
||||
));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user