You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stringstr = "&cLine1\n&cLine2";
TextComponentcomp = LegacyComponentSerializer.INSTANCE.deserialize(str, '&');
// comp looks fine - empty component, two children, "Line1\n" and "Line2", both red// now serialize again:str = LegacyComponentSerializer.INSTANCE.serialize(comp);
// Not fine: "§cLine1\nLine2" - second red coloring dropped due to linked line thinking that text is still red. however, the client resets color when a newline is encountered, so "Line2" is white
https://github.com/KyoriPowered/text/blob/f83cd4cfc9fdb4ef41fff8188ceeaa5e4acd6a4d/serializer-legacy/src/main/java/net/kyori/text/serializer/legacy/AbstractLegacyComponentSerializer.java#L229
The text was updated successfully, but these errors were encountered: