diff options
author | RayDeeUx <raydeeux@gmail.com> | 2022-08-19 11:01:29 -0400 |
---|---|---|
committer | RayDeeUx <raydeeux@gmail.com> | 2022-08-19 11:01:29 -0400 |
commit | 62d9012e1b9b5a3337f5a9f0e01fd684c860a4ce (patch) | |
tree | 4270337e299f58487a1f0851303e5ed44bb50584 /src/main/java/com/thatgravyboat/skyblockhud/handlers | |
parent | d6751da4434b97237d278e1666c031084cd57934 (diff) | |
download | SkyblockHud-Death-Defied-62d9012e1b9b5a3337f5a9f0e01fd684c860a4ce.tar.gz SkyblockHud-Death-Defied-62d9012e1b9b5a3337f5a9f0e01fd684c860a4ce.tar.bz2 SkyblockHud-Death-Defied-62d9012e1b9b5a3337f5a9f0e01fd684c860a4ce.zip |
#BanishTheCommas
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/handlers')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java | 2 | ||||
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java index 2feef38..1dda839 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/HeldItemHandler.java @@ -23,7 +23,7 @@ public class HeldItemHandler extends Gui { Matcher matcher = MANA_COST_REGEX.matcher(lore); if (matcher.find()) { try { - return Integer.parseInt(matcher.group(1)); + return Integer.parseInt(matcher.group(1).replaceAll(",", "")); } catch (Exception ignored) {} } return 0; diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java index 49f3ca5..5ed667d 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/SlayerHandler.java @@ -95,7 +95,7 @@ public class SlayerHandler { if (!isDoingSlayer && event.formattedLine.equals("Slayer Quest")) isDoingSlayer = true; if (isDoingSlayer) { - String line = event.formattedLine.toLowerCase(); + String line = event.formattedLine.toLowerCase().replaceAll(",", ""); Matcher killMatcher = KILLS_REGEX.matcher(line); if (killMatcher.find()) { |