Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the background color of a text display to null doesn't reset it #11996

Closed
NonSwag opened this issue Jan 21, 2025 · 1 comment · Fixed by #12010
Closed

Setting the background color of a text display to null doesn't reset it #11996

NonSwag opened this issue Jan 21, 2025 · 1 comment · Fixed by #12010
Labels
scope: api status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. version: 1.21.4 Game version 1.21.4

Comments

@NonSwag
Copy link
Contributor

NonSwag commented Jan 21, 2025

Expected behavior

I would expect that setting the background color of a text display to null would reset it to its default value
like in the picture
Image

Observed/Actual behavior

The background becomes a solid grayish white

Image

Steps/models to reproduce

  1. Spawn a text display
  2. set the background color to null

Plugin and Datapack List

irrelevant

Paper version

[18:18:02 INFO]: Checking version, please wait...
[18:18:02 INFO]: This server is running Paper version 1.21.4-118-main@73f7736 (2025-01-18T13:37:35Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.4-117-a35cfe9 (MC: 1.21.4)

Other

I skipped over the implementation, and the default is not -1 but 1073741824 now
using this code proves it

if (tagOptions.getBackgroundColor() != null) {
    display.setBackgroundColor(tagOptions.getBackgroundColor());
} else display.setBackgroundColor(Color.fromARGB(1073741824));
@papermc-sniffer papermc-sniffer bot added the version: 1.21.4 Game version 1.21.4 label Jan 21, 2025
@electronicboy
Copy link
Member

electronicboy commented Jan 21, 2025 via email

@Warriorrrr Warriorrrr added status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. and removed status: needs triage labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: api status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. version: 1.21.4 Game version 1.21.4
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants