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

Fix server icons + add server icon to config #143

Merged
merged 5 commits into from
Oct 18, 2024

Conversation

kralverde
Copy link
Contributor

This PR adds to config option to set the path to the server favicon

@Snowiiii
Copy link
Collaborator

Why did you remove the icon by default ?

@kralverde
Copy link
Contributor Author

kralverde commented Oct 18, 2024

The previous path was the root "/icon" which is already kind of broken no? We also don't provide an image so it doesn't make sense to me to point to a path by default.

@Snowiiii
Copy link
Collaborator

The previous path was the root "/icon" which is already kind of broken no? We also don't provide an image so it doesn't make sense to me to point to a path by default.

Nope, It works. Did you never saw the icon ?

@kralverde
Copy link
Contributor Author

kralverde commented Oct 18, 2024

It stopped working a while ago, but the path it checks for is "/icon.png" at the root. If you recreate the server to pumpkin.kralverde.dev, you will also see it has no icon.

Minecraft client caches the icon too which might be where confusion is coming from.

@Snowiiii
Copy link
Collaborator

Not sure maybe your right. So what would be a good way to get the icon from the current file. I was may thinking implementing something similar like in my game engine: https://github.com/ventengine/Vent-Engine/blob/master/crates/vent-assets/src/io/file.rs#L6

@kralverde
Copy link
Contributor Author

What's the icon file it should be?

@kralverde kralverde changed the title add favicon to config Fix server icons Oct 18, 2024
@kralverde kralverde changed the title Fix server icons Fix server icons + add server icon to config Oct 18, 2024
@Snowiiii
Copy link
Collaborator

oh please man, we don't need a separate file for this one

@Snowiiii
Copy link
Collaborator

Looks good to me now.
Thank you @kralverde

@Snowiiii Snowiiii merged commit 9d55896 into Pumpkin-MC:master Oct 18, 2024
8 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.

2 participants