if you cancel the list confirm, bundle items will be returned to you

Took 2 minutes
This commit is contained in:
Kiran Hart 2022-08-25 09:43:32 -04:00
parent b33ecceefe
commit 912a0d796f
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -146,6 +146,7 @@ public final class GUIBundleCreation extends AbstractPlaceholderGui {
AuctionHouse.getInstance().getGuiManager().showGUI(e.player, new GUIListingConfirm(e.player, auctionedItem, result -> {
if (!result) {
e.player.closeInventory();
validItems.forEach(item -> PlayerUtils.giveItem(e.player, item));
return;
}