aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-04 18:47:12 +0200
committerGitHub <noreply@github.com>2024-05-04 18:47:12 +0200
commit65b606a8495b0db5e6619777c453fe62f1a0fa9c (patch)
treec95cb31a985fe7ea37d374f0d5dab50d8414e74a /src/main/java/at
parenteaaacb33b7164c6304add968d9a442dea1059fd2 (diff)
downloadskyhanni-65b606a8495b0db5e6619777c453fe62f1a0fa9c.tar.gz
skyhanni-65b606a8495b0db5e6619777c453fe62f1a0fa9c.tar.bz2
skyhanni-65b606a8495b0db5e6619777c453fe62f1a0fa9c.zip
Fix: Crop Milestone Tab List (#1693)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneFix.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneFix.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneFix.kt
index 1387aed1d..534d28492 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneFix.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneFix.kt
@@ -21,9 +21,14 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
class GardenCropMilestoneFix {
private val patternGroup = RepoPattern.group("garden.cropmilestone.fix")
+
+ /**
+ * REGEX-TEST: Cocoa Beans 31: §r§a68%
+ * REGEX-TEST: Potato 32: §r§a97.7%
+ */
private val tabListPattern by patternGroup.pattern(
"tablist",
- " Milestone: §r§a(?<crop>.*) (?<tier>.*): §r§3(?<percentage>.*)%"
+ " (?<crop>.*) (?<tier>\\d+): §r§a(?<percentage>.*)%"
)
private val levelUpPattern by patternGroup.pattern(
"levelup",