From 791f12f2ee1ad147ddb12abde5a74bd3b0f4bdce Mon Sep 17 00:00:00 2001 From: martimavocado <39881008+martimavocado@users.noreply.github.com> Date: Sat, 10 Feb 2024 00:17:57 +0000 Subject: Fixed opening visitor Milestones menu not loading visitor amount for /ff. #988 --- .../skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') 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 (?\\d+):.*" + "§7Progress to Tier (?\\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() -- cgit