aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsg-programs <msgdoesstuff@gmail.com>2023-05-07 11:11:45 +0200
committermsg-programs <msgdoesstuff@gmail.com>2023-05-07 11:11:45 +0200
commit3e9677c0b944f306e9d59b7c47e492e883d1d551 (patch)
tree901649599cf6c4b59e32c9edae3ea8f5fad7c3bd
parentc4af58e95fff7515de9f49f2a84817401dc274c0 (diff)
downloadSkyblocker-3e9677c0b944f306e9d59b7c47e492e883d1d551.tar.gz
Skyblocker-3e9677c0b944f306e9d59b7c47e492e883d1d551.tar.bz2
Skyblocker-3e9677c0b944f306e9d59b7c47e492e883d1d551.zip
Fix another regex...
-rw-r--r--src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/DungeonPlayerWidget.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/DungeonPlayerWidget.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/DungeonPlayerWidget.java
index ce7b13bd..978447fe 100644
--- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/DungeonPlayerWidget.java
+++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/DungeonPlayerWidget.java
@@ -29,8 +29,8 @@ public class DungeonPlayerWidget extends Widget {
// group 3: level (or nothing, if pre dungeon start)
// as a side effect, this regex keeps the iron man icon in the name
// not sure if that should be
- private static final Pattern PLAYER_PATTERN = Pattern.compile("\\[\\d*\\] (.*) \\((\\S*) ?([XVI]*)\\)");
-
+ private static final Pattern PLAYER_PATTERN = Pattern.compile("\\[\\d*\\] (.*) \\((\\S*) ?([LXVI]*)\\)");
+
private static final HashMap<String, ItemStack> ICOS = new HashMap<>();
static {
ICOS.put("Tank", Ico.CHESTPLATE);
@@ -54,7 +54,7 @@ public class DungeonPlayerWidget extends Widget {
Text name = Text.literal("Name: ").append(Text.literal(m.group(1)).formatted(Formatting.YELLOW));
this.addComponent(new IcoTextComponent(Ico.PLAYER, name));
-
+
String cl = m.group(2);
Formatting clf = Formatting.GRAY;
ItemStack cli = Ico.BARRIER;