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

Fixed setting Base64 favicon for 1.19.4 or later #2533

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

lukalt
Copy link
Contributor

@lukalt lukalt commented Sep 13, 2023

Fixes setting favicons of server ping. Currently, the image data is encoded to base64 twice resulting in an invalid image sent to the client. This also slightly improves performance as the raw image does not get converted to Base64 in cases that do not require it.

Fixes #2511, #2354

@lukalt lukalt mentioned this pull request Sep 24, 2023
@dmulloy2
Copy link
Owner

lgtm. would be good to have a unit test or 2 to verify

@dmulloy2 dmulloy2 enabled auto-merge (squash) December 19, 2023 15:51
@dmulloy2 dmulloy2 merged commit 80aa420 into dmulloy2:master Dec 19, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ping.setFavicon(WrappedServerPing.CompressedImage image) wont show favicon on 1.19-1.20.1 servers.
2 participants