Catalogue (Fabric)

Catalogue (Fabric)

2M Downloads

Special colons stop label-content separation working

Closed this issue · 1 comments

commented

Describe the bug

Some languages use special colons (eg: Chinese uses ":" as colon), which will make the drawStringWithLabel method works bad. The label will follow content color since it cannot find ":".

String label = rawString.substring(0, rawString.indexOf(":") + 1);
String content = rawString.substring(rawString.indexOf(":") + 1);

To Reproduce

No response

Expected behavior

Labels and contents have the proper color.

Mod Version

No response

Minecraft Version

No response

Modloader

No response

Crash Log (if applicable)

No response

Additional context

No response

commented

Why I creates two issues at a time... Sorry.