diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-15 17:18:34 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-15 17:18:34 +0100 |
commit | 374695f99fcac8eb773b5a98e5540d75e7d8739a (patch) | |
tree | 76e66ec0eb6dea4a8c982345eca6d6a0a81e3f94 /src/main/java | |
parent | b191e8404c877e56ebbf3aba17916ceb195af8a6 (diff) | |
download | skyhanni-374695f99fcac8eb773b5a98e5540d75e7d8739a.tar.gz skyhanni-374695f99fcac8eb773b5a98e5540d75e7d8739a.tar.bz2 skyhanni-374695f99fcac8eb773b5a98e5540d75e7d8739a.zip |
reverted change of contestEarnedPattern
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt | 3 |
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 |