aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",