Skip to content

Fixed setting Base64 favicon for 1.19.4 or later#2533

Merged
dmulloy2 merged 1 commit intodmulloy2:masterfrom
lukalt:fix-favicon
Dec 19, 2023
Merged

Fixed setting Base64 favicon for 1.19.4 or later#2533
dmulloy2 merged 1 commit intodmulloy2:masterfrom
lukalt:fix-favicon

Conversation

@lukalt
Copy link
Copy Markdown
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
Copy Markdown
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
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