Skip to content

Commit

Permalink
Fix: Hoppity Requirement when already found. (hannibal002#2101)
Browse files Browse the repository at this point in the history
Co-authored-by: hannibal2 <[email protected]>
  • Loading branch information
hannibal002 and hannibal002 authored Jun 15, 2024
1 parent 5025043 commit 3a16949
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,13 @@ object HoppityCollectionStats {
val lore = slot.stack.getLore()
if (lore.any { requirementMet.find(it) } && !config.onlyHighlightRequirementNotMet)
slot highlight LorenzColor.GREEN
if (lore.any { requirementNotMet.find(it) })
slot highlight LorenzColor.RED
if (lore.any { requirementNotMet.find(it) }) {
val found = !rabbitNotFoundPattern.anyMatches(lore)
// Hypixel allows purchasing Rabbits from Hoppity NPC even when the requirement is not yet met.
if (!found) {
slot highlight LorenzColor.RED
}
}
}
}

Expand Down

0 comments on commit 3a16949

Please sign in to comment.