BungeeCord/chat/src
Janmm14 2a716bbc7f
#3344: Fix legacy chat conversion losing format reset information.
In legacy chat format, colors and reset do not retain any formatting.

In order to prevent this behaviour from creating unnecessary long json containing many redundant `formatting: false`, the original `fromLegacyText(...)` idea was to just override the color to white and handle the format reset just internally.

However eventual previous format rejection (aka reset) information was lost when appending multiple legacy format strings to a `ComponentBuilder`.

With this change we save the "reset wish" in the `BaseComponent` and update `ComponentBuilder`'s append function to not copy over formatting if the component has the reset flag set.
2022-06-30 21:22:16 +10:00
..
main #3344: Fix legacy chat conversion losing format reset information. 2022-06-30 21:22:16 +10:00
test/java/net/md_5/bungee/api/chat #3344: Fix legacy chat conversion losing format reset information. 2022-06-30 21:22:16 +10:00