From 13215732967bc17173abf76266bcc9ece8dfc8fd Mon Sep 17 00:00:00 2001 From: nulli0n Date: Tue, 17 Jun 2025 23:30:00 +0500 Subject: [PATCH] v2.7.7 --- .../main/java/su/nightexpress/nightcore/util/text/TextRoot.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/src/main/java/su/nightexpress/nightcore/util/text/TextRoot.java b/main/src/main/java/su/nightexpress/nightcore/util/text/TextRoot.java index 76c8188..0a32192 100644 --- a/main/src/main/java/su/nightexpress/nightcore/util/text/TextRoot.java +++ b/main/src/main/java/su/nightexpress/nightcore/util/text/TextRoot.java @@ -259,6 +259,8 @@ public class TextRoot { } if (tag instanceof TranslationTag) { if (tagContent != null) { + if (tagContent.endsWith("/")) tagContent = tagContent.substring(0, tagContent.length() - 1); // MiniMessage#serialize fix. + int index = indexOfIgnoreEscaped(tagContent, TagUtils.SEMICOLON, 0); String key = index < 0 ? tagContent : tagContent.substring(0, index); String fallback = index < 0 || index >= tagContent.length() ? null : TagUtils.unquoted(tagContent.substring(index + 1));