aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt
index 2992d901c..26c4746d1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt
@@ -117,9 +117,10 @@ class JacobFarmingContestsInventory {
if (!InventoryUtils.openInventoryName().contains("Your Contests")) return
val stack = event.stack ?: return
+ var finneganContest = false
for (line in stack.getLore()) {
- val finneganContest = line.contains("Contest boosted by Finnegan!")
+ if (line.contains("Contest boosted by Finnegan!")) finneganContest = true
val color = contestEarnedPattern.matchMatcher(line) { group("medalColour") } ?: continue
val medalEarned = ContestBracket.entries.find { it.color == color } ?: return