MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
19 stars 7 forks source link

[Bug] Cant load updated Skin #307

Closed SunshineMocha closed 1 month ago

SunshineMocha commented 1 month ago

Minecraft and Mod version 🐞 1.21 - Neo Forge 21.0.143 - Easy NPC 5.5.8v

Describe the bug 🐞 When asked to load my own skin through the "Player" section, it loads the past skin.

Expected behavior ✔️ The game should load the new skin that I changed through launcher instead of the past one,

Screenshots 📸 2024-08-26_12 16 30

Is the issue happening in combination with other mods? (If yes, please provide a full list) 🧩 This error is happening only with EasyNPC but not with SkinRestorer

SunshineMocha commented 1 month ago

UPDATE: Appearently its just THAT skin that gives issues, for whatever reaason.

MarkusBordihn commented 1 month ago

Thanks for the feedback! This issue is related to caching—player skins are cached on the client side to improve performance. If you've previously used a player skin and then enter the same username again, the skin will be loaded from the cache instead of being refreshed.

To resolve this, you can manually clear the cache by deleting the /easy_npc/cache/player_skin directory. This should ensure the correct skin appears.

I'll work on implementing a system that tracks skin versions to prevent these caching issues in the future. Additionally, I’m considering limiting the cache duration to around one day to further minimize such problems.

SunshineMocha commented 1 month ago

It worked, thank you very much! I thought that deleting the skin from the folder would have helped but appearently wasnt enough. Thank you very much again <3