From fee92e0404b3515f93b6542390da8eb67de3106a Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Thu, 30 May 2024 03:59:29 +1000 Subject: Fix insta buy warning not working in confirm menu (#1186) --- .../moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt index 007150f8..f0aace54 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt @@ -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) -- cgit