[PR #2937] [CLOSED] Show the signed-in account's own skin in single player and first person #4693

Closed
opened 2026-11-03 05:07:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2937
Author: @cammythekitty
Created: 10/27/2026
Status: ❌ Closed

Base: main ← Head: fix/own-skin-first-person-arm


📝 Commits (2)

  • 5a0c62e Show the signed-in account's own skin in single player and first person
  • 651f5d6 Merge branch 'main' into fix/own-skin-first-person-arm

📊 Changes

3 files changed (+93 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/auth.rs (+18 -0)
📝 crates/horizon-client/src/game/remote.rs (+17 -0)
📝 crates/horizon-client/src/skins.rs (+58 -0)

📄 Description

What and why

Single-player and LAN servers don't send the local player's textures property, so the player stayed on the default skin. This fetches the account's active skin and cape from the Minecraft services profile (GET /minecraft/profile) once after joining. They are used when the server sent none. The first-person arm now draws that skin instead of always Steve.

Fixes #

Vanilla reference

PlayerInfo.getSkin (a player's skin and cape), ItemInHandRenderer.renderPlayerArm (first-person arm), MinecraftProfileResponse (the ACTIVE skin and cape). Covered by the unit test skins::tests::services_profile_answers_give_the_active_skin_and_cape. No parity harness covers it.

Self-check

pr_ready (tools/pr_ready.py --quick on CammysArch, against origin/main at 0b9855500, 3 min 25 s)

Check Result
Scope ✅ 4 files, +135 −4
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ➖ no Python change
rustfmt ✅ (5 s)
clippy ❌ failed (17 s)
tests: horizon-client ✅ 1336 passed (3 min 0 s)
doc tests ✅ 0 passed (2 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 264 affected, to run in CI (--quick): arrow, block_particles, breaking_model, datafix, decorated_region, decoration, decoration_region, dedicated_server, delta, density, disk, dispenser and 252 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Clippy fails on code this PR doesn't touch: horizon-world/src/worldgen/aquifer/noise_based.rs:450 (clippy::manual_range_contains, from Rust 1.97's clippy). It stops clippy before it reaches horizon-client, so clippy has not checked the files in this PR.

Screenshots

image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2937 **Author:** [@cammythekitty](https://github.com/cammythekitty) **Created:** 10/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/own-skin-first-person-arm` --- ### 📝 Commits (2) - [`5a0c62e`](https://github.com/horizon-rust/horizon/commit/5a0c62ee84fa3da462b8552e9a955c8764b5be2f) Show the signed-in account's own skin in single player and first person - [`651f5d6`](https://github.com/horizon-rust/horizon/commit/651f5d6e36ce195e3870085cd2ae99fca2aebf83) Merge branch 'main' into fix/own-skin-first-person-arm ### 📊 Changes **3 files changed** (+93 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/auth.rs` (+18 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+17 -0) 📝 `crates/horizon-client/src/skins.rs` (+58 -0) </details> ### 📄 Description ## What and why Single-player and LAN servers don't send the local player's `textures` property, so the player stayed on the default skin. This fetches the account's active skin and cape from the Minecraft services profile (`GET /minecraft/profile`) once after joining. They are used when the server sent none. The first-person arm now draws that skin instead of always Steve. Fixes #<issue number> ## Vanilla reference `PlayerInfo.getSkin` (a player's skin and cape), `ItemInHandRenderer.renderPlayerArm` (first-person arm), `MinecraftProfileResponse` (the `ACTIVE` skin and cape). Covered by the unit test `skins::tests::services_profile_answers_give_the_active_skin_and_cape`. No parity harness covers it. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on CammysArch, against origin/main at 0b9855500, 3 min 25 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +135 −4 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ➖ no Python change | | rustfmt | ✅ (5 s) | | clippy | ❌ failed (17 s) | | tests: horizon-client | ✅ 1336 passed (3 min 0 s) | | doc tests | ✅ 0 passed (2 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 264 affected, to run in CI (--quick): arrow, block_particles, breaking_model, datafix, decorated_region, decoration, decoration_region, dedicated_server, delta, density, disk, dispenser and 252 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Clippy fails on code this PR doesn't touch: `horizon-world/src/worldgen/aquifer/noise_based.rs:450` (`clippy::manual_range_contains`, from Rust 1.97's clippy). It stops clippy before it reaches horizon-client, so clippy has not checked the files in this PR. ## Screenshots <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/e5e808ba-204f-40fd-b0f8-4f464cf82b81" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:14 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4693
No description provided.