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

[Suggestion] Don't cache default mojang skin #63

Open
Kneelawk opened this issue Sep 22, 2022 · 4 comments
Open

[Suggestion] Don't cache default mojang skin #63

Kneelawk opened this issue Sep 22, 2022 · 4 comments

Comments

@Kneelawk
Copy link

The Issue

While working on my Modfest: Singularity booth, I decided to update my Minecraft skin to more accurately represent how I wished to be perceived by those around me, as the disconnect was becoming uncomfortable. I uploaded my skin to the minecraft.net servers, waited a few minutes, and loaded up my game. However, when I logged into the Modfest server, I found that my skin was still set to my old, uncomfortable one.

After some fiddling with my launcher and discovering my skin rendered correctly in single-player and a local dedicated server, I figured a mod must have been caching my old player-skin server-side on the Modfest server. I had no idea what though, as this Modfest has 100+ submissions.

Eventually someone mentioned Fabric Tailor and I searched through the controls menu, found the keybind, and got my skin updated. But it gave me quite a scare.

The Suggested Fix

It might be helpful for those who don't know they have this mod installed to attempt to replicate default minecraft.net skin-loading behavior unless a player has explicitly selected a skin through Fabric Tailor.

This could be done by storing an extra enabled boolean along with each player's skin data that defaults to false if a player has no existing skin data, and that is set to true when the player sets a custom skin.

@Kneelawk
Copy link
Author

I'll admit, I was close to just adding a mixin to my mod that would just forcefully set my player skin texture. Luckily someone mentioned Fabric Tailor and I got everything sorted out.

@Kneelawk
Copy link
Author

Kneelawk commented Sep 22, 2022

This taught me that if a player loses control over how they present in game, it can be a pretty frightening experience for them.

@samolego
Copy link
Owner

This could be even easier; don't cache the skin if not set (by default current skin is cached), that way it will always load "fresh" one. Sounds like a doable request :), when I have time 😅 .

@Kneelawk
Copy link
Author

Thanks for looking into this! :)

@samolego samolego changed the title [Suggestion] Use Mojang-provided skin by default [Suggestion] Don't cache default mojang skin Sep 24, 2022
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

No branches or pull requests

2 participants