Wynntils

Wynntils

611k Downloads

ComponentUtils#splitComponent does not wrap the last component to maxWidth

ILikePlayingGames opened this issue ยท 2 comments

commented

I haven't been able to figure it out but it seems to be something wrong or unexpected in net.minecraft.client.StringSplitter#splitLines(net.minecraft.network.chat.FormattedText, int, net.minecraft.network.chat.Style)

commented

I think we could have it split the way I did it in the above PR but many things depend on this and idk what would break if I fixed it.

commented

It actually works with different fonts, I was just accidentally passed a string which doesn't have any style instead of the original Component.