aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2')
-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
+ }
+ }
}
}