diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-02 11:23:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 11:23:30 +0200 |
commit | 4a3cf27e2501d75bc98a976489a211638060e9a4 (patch) | |
tree | aae06e3ffe83786af087fc58c423caccb0d588ad /src/main/java/at | |
parent | 88a955969c550657ded7387c91e84d2bf37bec4d (diff) | |
download | skyhanni-4a3cf27e2501d75bc98a976489a211638060e9a4.tar.gz skyhanni-4a3cf27e2501d75bc98a976489a211638060e9a4.tar.bz2 skyhanni-4a3cf27e2501d75bc98a976489a211638060e9a4.zip |
Fix: Bazaar buy order error when nothing to cancel (#1606)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/bazaar/BazaarCancelledBuyOrderClipboard.kt | 6 |
1 files changed, 6 insertions, 0 deletions
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", |