aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-06-15 11:22:17 +0200
committerGitHub <noreply@github.com>2024-06-15 11:22:17 +0200
commit3a16949477a70f8c01b1eaa276b28282da66f1e2 (patch)
tree03266fc6c77d5940d421c311b76b23838cf5f9bc
parent5025043986350435d042f83a51007fc8c4495827 (diff)
downloadskyhanni-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>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt9
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
+ }
+ }
}
}