mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-04 06:28:51 +00:00
v2.7.7
This commit is contained in:
1 parent
bf33a5e57d
commit
1321573296
1 file changed
+2
@@ -259,6 +259,8 @@ public class TextRoot {
|
|||||||
}
|
}
|
||||||
if (tag instanceof TranslationTag) {
|
if (tag instanceof TranslationTag) {
|
||||||
if (tagContent != null) {
|
if (tagContent != null) {
|
||||||
|
if (tagContent.endsWith("/")) tagContent = tagContent.substring(0, tagContent.length() - 1); // MiniMessage#serialize fix.
|
||||||
|
|
||||||
int index = indexOfIgnoreEscaped(tagContent, TagUtils.SEMICOLON, 0);
|
int index = indexOfIgnoreEscaped(tagContent, TagUtils.SEMICOLON, 0);
|
||||||
String key = index < 0 ? tagContent : tagContent.substring(0, index);
|
String key = index < 0 ? tagContent : tagContent.substring(0, index);
|
||||||
String fallback = index < 0 || index >= tagContent.length() ? null : TagUtils.unquoted(tagContent.substring(index + 1));
|
String fallback = index < 0 || index >= tagContent.length() ? null : TagUtils.unquoted(tagContent.substring(index + 1));
|
||||||
|
|||||||
Reference in new issue
Block a user