From 974d6b7b8e2a90a0e6c32c92ab2ce7cb3109e060 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 18 Oct 2023 20:41:55 +0200 Subject: [PATCH] Fix Meteor logo when using BetterChat with Player Heads and Timestamps --- .../meteorclient/systems/modules/misc/BetterChat.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/misc/BetterChat.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/misc/BetterChat.java index f60de694b6..28ceaf0c5c 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/misc/BetterChat.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/misc/BetterChat.java @@ -394,7 +394,8 @@ private void drawTexture(DrawContext context, IChatHudLine line, int y) { int startOffset = 0; try { - startOffset = TIMESTAMP_REGEX.matcher(text).end(); + Matcher m = TIMESTAMP_REGEX.matcher(text); + if (m.find()) startOffset = m.end() + 1; } catch (IllegalStateException ignored) {}