Tooltips replaces colors with alternates.
Kichura opened this issue · 5 comments
Can confirm. Italic and purple is the default style for item lores, so it looks like it resets the style when wrapping.
ToolTipFix has never properly handled styles correctly. Currently it just copies the style of the previous line when making a new line. Not sure how it's ending up purple/italic though.
I do plan on fixing this eventually
This is still an issue and it's quite annoying. The issue here are ChatFormatting
codes. ToolTipFix prefers the Component
's Style
over those, but for Minecraft it's the other way around: If a String contains ChatFormatting
codes, the set Style
is (mostly?) ignored in favor of the custom formatting.
In the attached screenshot from a mod of mine (feel free to use it for testing a fix, the mod allows for using formatting codes directly in the anvil text field) you can see how formatting codes are properly applied in the first line, and then as mentioned in another comment, the Component
's Style
is used instead for the following lines.
This is not an issue in the native fix Forge has, so maybe it's worth checking that out.