[PR #4737] [MERGED] Show the signed-in account's active cape in single player #5818

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4737
Author: @WooCaash
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/3852-cape


📝 Commits (2)

  • e2de9a0 Fetch the signed-in player's active cape from Minecraft profile.
  • 38eb9d6 Drop unrelated recipe_book ghost edits from the cape fix.

📊 Changes

3 files changed (+153 additions, -22 deletions)

View changed files

📝 crates/horizon-client-render/src/auth.rs (+19 -0)
📝 crates/horizon-client-render/src/skins.rs (+74 -0)
📝 crates/horizon-client/src/game/remote.rs (+60 -22)

📄 Description

🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally.

Summary

  • After joining, the client fetches GET /minecraft/profile once (with the launcher session token) and reads the ACTIVE skin and cape, matching the launcher account flow.
  • When the server already sent the local player's textures but no cape URL (typical integrated single-player), the client merges the equipped cape from that profile instead of only filling in a completely missing skin.
  • Adds services_profile_textures plus a unit test; supersedes the broken #2937 approach on current main.

Fixes #3852

Test plan

  • cargo test -p horizon-client-render services_profile_answers
  • cargo check -p horizon-client
  • Sign in via launcher, load a single-player world, confirm cape visible in third person (F5)

Co-Authored-By: Cursor noreply@cursor.com

Made with Cursor


🔄 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/4737 **Author:** [@WooCaash](https://github.com/WooCaash) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/3852-cape` --- ### 📝 Commits (2) - [`e2de9a0`](https://github.com/horizon-rust/horizon/commit/e2de9a0b2879670c2ee169f1d40a9929d3aa6c41) Fetch the signed-in player's active cape from Minecraft profile. - [`38eb9d6`](https://github.com/horizon-rust/horizon/commit/38eb9d612e47db89fdd589f21d3f98ebec8be7aa) Drop unrelated recipe_book ghost edits from the cape fix. ### 📊 Changes **3 files changed** (+153 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/auth.rs` (+19 -0) 📝 `crates/horizon-client-render/src/skins.rs` (+74 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+60 -22) </details> ### 📄 Description > 🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally. ## Summary - After joining, the client fetches `GET /minecraft/profile` once (with the launcher session token) and reads the **ACTIVE** skin and cape, matching the launcher account flow. - When the server already sent the local player's textures but **no cape URL** (typical integrated single-player), the client merges the equipped cape from that profile instead of only filling in a completely missing skin. - Adds `services_profile_textures` plus a unit test; supersedes the broken #2937 approach on current main. Fixes #3852 ## Test plan - [x] `cargo test -p horizon-client-render services_profile_answers` - [x] `cargo check -p horizon-client` - [ ] Sign in via launcher, load a single-player world, confirm cape visible in third person (F5) Co-Authored-By: Cursor <noreply@cursor.com> Made with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:12 +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#5818
No description provided.