From 4a3cf27e2501d75bc98a976489a211638060e9a4 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 2 May 2024 11:23:30 +0200 Subject: Fix: Bazaar buy order error when nothing to cancel (#1606) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../features/inventory/bazaar/BazaarCancelledBuyOrderClipboard.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/bazaar/BazaarCancelledBuyOrderClipboard.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/bazaar/BazaarCancelledBuyOrderClipboard.kt index 7a8ad18b6..d66e1c214 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/bazaar/BazaarCancelledBuyOrderClipboard.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/bazaar/BazaarCancelledBuyOrderClipboard.kt @@ -53,6 +53,12 @@ class BazaarCancelledBuyOrderClipboard { latestAmount = group("amount").formatInt() return } + + // nothing to cancel + if (lore.firstOrNull() == "ยง7Cannot cancel order while there are") { + return + } + ErrorManager.logErrorStateWithData( "BazaarCancelledBuyOrderClipboard error", "lastAmountPattern can not find latestAmount", -- cgit