Skip to content

Fix brand name always returns null#9754

Closed
LemonCaramel wants to merge 1 commit into
PaperMC:masterfrom
LemonCaramel:fix-brand-name
Closed

Fix brand name always returns null#9754
LemonCaramel wants to merge 1 commit into
PaperMC:masterfrom
LemonCaramel:fix-brand-name

Conversation

@LemonCaramel
Copy link
Copy Markdown
Contributor

Honestly, I don't know if it is a good way

@LemonCaramel LemonCaramel requested a review from a team as a code owner September 24, 2023 13:03
Copy link
Copy Markdown
Member

@Warriorrrr Warriorrrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking it'd also be possible to set the brand before the instanceof & return in handleCustomPayload, but that would result in the message received event not being called for plugins, so this seems like it'd be the simplest way to solve it at least

@electronicboy
Copy link
Copy Markdown
Member

The proper solution would be to actually handle the new type properly instead of just trying to bodge it out

@Lulu13022002
Copy link
Copy Markdown
Contributor

Closing this pr, since this is a hack not a fix and your change doesn't work for the same reason electronicboy's commit doesn't either. However thank you for the report, the issue is still valid.

@LemonCaramel LemonCaramel deleted the fix-brand-name branch October 15, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

4 participants