From 3a16949477a70f8c01b1eaa276b28282da66f1e2 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sat, 15 Jun 2024 11:22:17 +0200 Subject: Fix: Hoppity Requirement when already found. (#2101) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/features/event/hoppity/HoppityCollectionStats.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main') 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 + } + } } } -- cgit