aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-05-30 03:59:29 +1000
committerGitHub <noreply@github.com>2024-05-29 19:59:29 +0200
commitfee92e0404b3515f93b6542390da8eb67de3106a (patch)
treeec13a46b0eb234db319f5cba828b58ff302b960b
parentfe625428273cf9bba1c5e3ed1327600ee63ef0ff (diff)
downloadNotEnoughUpdates-fee92e0404b3515f93b6542390da8eb67de3106a.tar.gz
NotEnoughUpdates-fee92e0404b3515f93b6542390da8eb67de3106a.tar.bz2
NotEnoughUpdates-fee92e0404b3515f93b6542390da8eb67de3106a.zip
Fix insta buy warning not working in confirm menu (#1186)
-rw-r--r--src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/BazaarPriceWarning.kt2
1 files changed, 1 insertions, 1 deletions
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)