High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies https://papermc.io/
Find a file
CraftBukkit/Spigot 66cb03e41a Replace TextWrapper with simple newline splitting. Fixes BUKKIT-1662
TextWrapper used to try to ensure a message would wrap correctly on the
client by counting the width of the characters in pixels and wrapping
before hitting that limit. This was needed because the client would lose
color information when wrapping and could not handle long lines of text.

Now that both of these problems are solved in the client we can replace
TextWrapper with simple code to split the message into multiple packets on
newlines and ensure chat colors carry across to the new packet.

By: Travis Watkins <amaranth@ubuntu.com>
2012-05-16 18:09:33 -05:00
paper-server Replace TextWrapper with simple newline splitting. Fixes BUKKIT-1662 2012-05-16 18:09:33 -05:00