mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-22 05:25:11 +01:00
🏷️ processSell() on listing confirm exit (by esc)
Took 3 minutes
This commit is contained in:
parent
10f3607c29
commit
44e026c211
@ -56,7 +56,10 @@ public final class GUIListingConfirm extends AbstractPlaceholderGui {
|
||||
open.player.setMetadata("AuctionHouseConfirmListing", new FixedMetadataValue(AuctionHouse.getInstance(), "ConfirmListing"));
|
||||
});
|
||||
|
||||
setOnClose(close -> close.player.removeMetadata("AuctionHouseConfirmListing", AuctionHouse.getInstance()));
|
||||
setOnClose(close -> {
|
||||
close.player.removeMetadata("AuctionHouseConfirmListing", AuctionHouse.getInstance());
|
||||
AuctionHouse.getInstance().getAuctionPlayerManager().processSell(close.player);
|
||||
});
|
||||
|
||||
setRows(1);
|
||||
draw();
|
||||
|
Loading…
Reference in New Issue
Block a user