Skip to content

Commit

Permalink
Fix insta buy warning not working in confirm menu (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
NopoTheGamer authored May 29, 2024
1 parent fe62542 commit fee92e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class BazaarPriceWarning : WarningPopUp() {
ItemUtils.getDisplayName(signStack) != "§aCustom Amount"
val isBuyOrder = Utils.getOpenChestName().contains("How many do you want?")
val isConfirmInstantBuy = Utils.getOpenChestName().contains("Confirm Instant Buy")
if ((hasCustomAmount && !isBuyOrder) || isConfirmInstantBuy) return
if ((hasCustomAmount && !isBuyOrder && !isConfirmInstantBuy)) return
if (shouldShow()) return
val stack = event.slot.stack ?: return
val lore = ItemUtils.getLore(stack)
Expand Down

0 comments on commit fee92e0

Please sign in to comment.