question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Component with WHITE text color has weird MiniMessage serialization

See original GitHub issue

Say I have these components:

Component parent = Component.text("Parent").color(NamedTextColor.DARK_RED);
Component child = Component.text("Child").color(NamedTextColor.WHITE);

Component both = parent.append(child);

I believe that a component with WHITE text color is essentially being treated as just a component with no text color since white is the default color. Therefore, the child component inherits the color from the parent component since the child technically has no color given. In my testing, changing the child component’s color to anything else yields the desired result: the parent color is not inherited.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ehhthancommented, Apr 3, 2021

@Ehhthan that looks interesting – would you be willing to submit that as a PR?

One has been submitted.

1reaction
Ehhthancommented, Apr 1, 2021

I ran into this issue also, i tried fixing it by rewriting the serializer. If you want to see the rewritten serializer it’s hosted here https://github.com/Ehhthan/adventure-text-minimessage/commit/fac4fc037c7f89082767f6adbbf091a0628dd06c?w=1

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Custom Color in text components | SpigotMC
Hi, im trying to make a text component with custom colors but for some reason it is turning back to normal colors in...
Read more >
Format - Adventure Documentation (v4.12.0)
The MiniMessage Web Viewer allows testing MiniMessage text locally, without having to spin up a Minecraft instance. It can be helpful to put...
Read more >
Visual Studio Code - All white text? - Stack Overflow
Recently my visual studio code's text has all been white and I cannot change it with the 'File > Preferences > Color Theme'...
Read more >
Message background and font color changed on its own
You have mentioned wanting to use White text on blue background - highly unusual, but do you want to read all incoming plain...
Read more >
White text on a black background with text() - MATLAB Answers
textColor = 'white';. There is white text over a black background in my MATLAB figure, but NOT in the PNG. ... The strange...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found