🏷️ processSell() on listing confirm exit (by esc)

Took 3 minutes
This commit is contained in:
Kiran Hart 2023-03-03 11:45:40 -05:00
parent 10f3607c29
commit 44e026c211
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -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();