Skip to content

withFormatting breaking color codes in formulas #2792

@envoidia

Description

@envoidia

GregTech CEu Version

Master

Modpack Used

No response

Addons Installed

No response

Environment

Singleplayer

New Worlds

Yes

Cross-Mod Interaction

No

Expected Behavior

Expected colors in Material formulas to work

Actual Behavior

If withFormatting is enabled, only color codes that use letters (and not numbers) work properly, and the rest are turned white, ostensibly due to how the automatic formatting interprets numbers:
Image
Image

Steps to Reproduce

Set a material's formula to something that uses a color code that has a number, eg "§cRed§e3(§9Blue§e4)§aGreen"

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions