aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-10-07 11:24:20 +0200
committerGitHub <noreply@github.com>2024-10-07 11:24:20 +0200
commit3b61c48e2e1545bcf009bcbb563de5fbb63277ab (patch)
treeb71270daeec409c74dc7aa5ea132c4f70e40ebbd /src/main/java/at/hannibal2/skyhanni/features/event
parentdf210dceb42d76597272b066854fa39209f6d353 (diff)
downloadskyhanni-3b61c48e2e1545bcf009bcbb563de5fbb63277ab.tar.gz
skyhanni-3b61c48e2e1545bcf009bcbb563de5fbb63277ab.tar.bz2
skyhanni-3b61c48e2e1545bcf009bcbb563de5fbb63277ab.zip
Fix: Hoppity wrong amount (#2686)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt
index 7d2a6a457..6d201e57e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt
@@ -505,7 +505,11 @@ object HoppityCollectionStats {
val found = !rabbitNotFoundPattern.anyMatches(itemLore)
- if (!found) continue
+ if (!found) {
+ // if the config has wrong data, remove it
+ loggedRabbits.remove(itemName)
+ continue
+ }
val duplicates = duplicatesFoundPattern.firstMatcher(itemLore) {
group("duplicates").formatInt()