diff options
author | martimavocado <39881008+martimavocado@users.noreply.github.com> | 2024-02-10 00:17:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-10 01:17:57 +0100 |
commit | 791f12f2ee1ad147ddb12abde5a74bd3b0f4bdce (patch) | |
tree | 8354f1c6277170d49418a7e36bdfb21b698dd0aa /src/main/java/at/hannibal2/skyhanni/features | |
parent | fb7d2d3af38f5cee2b2029bc93c49943a1b7ae35 (diff) | |
download | skyhanni-791f12f2ee1ad147ddb12abde5a74bd3b0f4bdce.tar.gz skyhanni-791f12f2ee1ad147ddb12abde5a74bd3b0f4bdce.tar.bz2 skyhanni-791f12f2ee1ad147ddb12abde5a74bd3b0f4bdce.zip |
Fixed opening visitor Milestones menu not loading visitor amount for /ff. #988
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt index d2eba9974..89cac9417 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt @@ -46,7 +46,7 @@ class CaptureFarmingGear { private val patternGroup = RepoPattern.group("garden.fortuneguide.capture") private val tierPattern by patternGroup.pattern( "uniquevisitors.tier", - "§7Progress to Tier (?<nextTier>\\d+):.*" + "§7Progress to Tier (?<nextTier>\\w+):.*" ) private val tierProgressPattern by patternGroup.pattern( "uniquevisitors.tierprogress", @@ -153,7 +153,7 @@ class CaptureFarmingGear { var tierProgress = -1 for (line in item.getLore()) { tierPattern.matchMatcher(line) { - tier = group("nextTier").toInt() - 1 + tier = group("nextTier").romanToDecimalIfNecessary() - 1 } tierProgressPattern.matchMatcher(line) { tierProgress = group("having").toInt() |