From 62d9012e1b9b5a3337f5a9f0e01fd684c860a4ce Mon Sep 17 00:00:00 2001 From: RayDeeUx Date: Fri, 19 Aug 2022 11:01:29 -0400 Subject: #BanishTheCommas --- .../com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/thatgravyboat/skyblockhud/playerstats') diff --git a/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java b/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java index 30f14fa..380f4a5 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/playerstats/ActionBarParsing.java @@ -101,6 +101,7 @@ public class ActionBarParsing { if (!lastActionBar.equals(input)) { lastActionBar = input; String bar = Utils.removeColor(input); + String fuckHypixelForAddingCommas = bar; bar = bar.replaceAll(",", ""); Matcher HealthMatcher = HealthRegex.matcher(bar); @@ -108,7 +109,7 @@ public class ActionBarParsing { Matcher ManaMatcher = ManaRegex.matcher(bar); Matcher ManaUseMatcher = ManaDecreaseRegex.matcher(bar); Matcher ManaOverflowMatcher = ManaOverflowRegex.matcher(bar); - Matcher XpGainMatcher = XpGainRegex.matcher(bar); + Matcher XpGainMatcher = XpGainRegex.matcher(fuckHypixelForAddingCommas); // Matcher DominusMatcher = DominusRegex.matcher(bar); boolean healthFound = HealthMatcher.find(); -- cgit