diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-10-07 11:24:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-07 11:24:20 +0200 |
commit | 3b61c48e2e1545bcf009bcbb563de5fbb63277ab (patch) | |
tree | b71270daeec409c74dc7aa5ea132c4f70e40ebbd | |
parent | df210dceb42d76597272b066854fa39209f6d353 (diff) | |
download | skyhanni-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>
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt | 6 |
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() |