diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-06-15 11:22:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 11:22:17 +0200 |
commit | 3a16949477a70f8c01b1eaa276b28282da66f1e2 (patch) | |
tree | 03266fc6c77d5940d421c311b76b23838cf5f9bc /src/main/java | |
parent | 5025043986350435d042f83a51007fc8c4495827 (diff) | |
download | skyhanni-3a16949477a70f8c01b1eaa276b28282da66f1e2.tar.gz skyhanni-3a16949477a70f8c01b1eaa276b28282da66f1e2.tar.bz2 skyhanni-3a16949477a70f8c01b1eaa276b28282da66f1e2.zip |
Fix: Hoppity Requirement when already found. (#2101)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt | 9 |
1 files changed, 7 insertions, 2 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 b12490aaa..925eaadd8 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 @@ -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 + } + } } } |