- Fix crash when transitioning from Browse to Settings:
* Prevent UI thrashing by executing router settle in use_side_effect rather than during render
* Add PartialEq/Eq to BrowserUiState and use use_side_effect_with_deps in Browser component
- Fix in-game skin loading across all Minecraft versions:
* Modern Minecraft (1.19.3 - 1.21.x) default player skin resolution covers all 9 character models (Steve, Alex, Ari, Efe, Kai, Makena, Noor, Sunny, Zuri) for both wide and slim model paths
* Legacy Minecraft (1.8 - 1.19.2) entity texture paths (textures/entity/steve.png, alex.png)
* Multi-mod directory synchronization: CustomSkinLoader, OfflineSkins, cachedImages for cluster game dir and shared .minecraft
* Safe options.txt patching supporting both resourcePacks and incompatibleResourcePacks list formats
Remove the entire skin_server.rs module and authlib-injector approach (HTTP server,
JVM agent, jar download). Replace with a dead-simple resource pack strategy:
- inject_skin_resource_pack() in launch.rs:
* On every launch, if the player has a saved skin, writes it to
resourcepacks/onelauncher_skin/assets/minecraft/textures/entity/player/wide/steve.png
and .../slim/alex.png (both variants so it always matches)
* Writes a pack.mcmeta with supported_formats 1-9999 covering all MC versions
* Patches options.txt to add/keep 'file/onelauncher_skin' in the resourcePacks list
* If no custom skin is saved, cleans up the pack dir and removes the options.txt entry
- patch_resource_packs_option() handles safe idempotent read-modify-write of options.txt
- Remove skin_server module from game/mod.rs
- Remove authlib_injector_path() from paths.rs
- Revert jvm_args to immutable (no longer needs push)
No extra dependencies, no background threads, no network requests.
- Add packages/oneclient_core/src/game/skin_server.rs:
* Local Tokio TCP skin server that serves a minimal Yggdrasil-compatible API
* Responds to GET /, GET /session/minecraft/profile/:uuid, GET /textures/:uuid.png
* Reads skin PNGs and metadata from launcher skins dir
* sync_offline_skins() copies PNG to CustomSkinLoader/skins/, config/offlineskins/, cachedImages/skins/
* prepare_authlib_injector() downloads authlib-injector-1.2.5.jar on first launch
- Modify packages/oneclient_core/src/game/launch.rs:
* Start skin server and attach -javaagent authlib-injector before spawning Minecraft
* Sync skins to cluster game dir mod folders on every launch
- Add authlib_injector_path() to packages/oneclient_common/src/paths.rs
- Remove dead fetch_skin_online() from skin.rs + all exports