Skip to content

Commit

Permalink
Fixed hoppity collection display not updating rabbit count sometimes …
Browse files Browse the repository at this point in the history
…(when collecting rabbits on alpha or manually change the config values)
  • Loading branch information
hannibal002 committed Oct 7, 2024
1 parent 82ea42e commit 65112d0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 65112d0

Please sign in to comment.