From cafc2c475cd3599e5275515d2d35c3dda1c1ef8f Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Fri, 22 Nov 2024 21:34:52 -0600 Subject: [PATCH] Fix rendering messages with multiple emotes --- thrimbletrimmer/src/common/chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrimbletrimmer/src/common/chat.tsx b/thrimbletrimmer/src/common/chat.tsx index e2964aa..b8f8315 100644 --- a/thrimbletrimmer/src/common/chat.tsx +++ b/thrimbletrimmer/src/common/chat.tsx @@ -378,7 +378,7 @@ const MessageText: Component = (props) => { emoteData.start - messageTextStart, emoteData.end + 1 - messageTextStart, ); - chatMessageText = chatMessageText.substring(emoteData.end + 1); + chatMessageText = chatMessageText.substring(emoteData.end + 1 - messageTextStart); messageTextStart = emoteData.end + 1; messageParts.push(