From 912a0d796f69ccfba70a095a3356d6338338c3a7 Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Thu, 25 Aug 2022 09:43:32 -0400 Subject: [PATCH] if you cancel the list confirm, bundle items will be returned to you Took 2 minutes --- .../java/ca/tweetzy/auctionhouse/guis/GUIBundleCreation.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/GUIBundleCreation.java b/src/main/java/ca/tweetzy/auctionhouse/guis/GUIBundleCreation.java index 6dd3a21..e0cd25e 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/GUIBundleCreation.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/GUIBundleCreation.java @@ -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; }