[PR #4108] [MERGED] Show the default skin when a remote player's skin sprite is missing #5422

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

📋 Pull Request Information

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

Base: main ← Head: fix/issue-4096-remote-default-skin


📝 Commits (1)

  • d2e26c3 Players with a missing skin sprite draw the default skin, not nothing

📊 Changes

2 files changed (+13 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+3 -1)
📝 crates/horizon-client/src/mobs/render.rs (+10 -1)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4096

Cause: not reproduced. The issue only says the remote player is invisible on cracked or official servers. This change is defensive and is based on code reading. A player whose skin sprite is missing from the atlas draws no body, which could look like the reported invisibility.

Change: a player or mannequin with no skin sprite draws with the default skin texture (mobs/render.rs). again_skin in game/remote.rs counts a skin as stored only when its sprite is in the atlas, so a missing one is requested again.

Tested: cargo fmt --check, cargo clippy -p horizon-client --all-targets -- -D warnings, cargo test -p horizon-client-render --lib skin (11 passed), cargo test -p horizon-client --bins (191 and 18; 3 ignored) and cargo test -p horizon-client --lib mobs (146; 7 ignored) pass. No new test was added.

Not tested: no reproduction on a cracked or official server, so it is not confirmed that this is the cause. The horizon-client skin test filter ran 0 tests. No vanilla parity run (no .local vanilla data). tools/pr_ready.py not run.


🔄 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/4108 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/issue-4096-remote-default-skin` --- ### 📝 Commits (1) - [`d2e26c3`](https://github.com/horizon-rust/horizon/commit/d2e26c32d4f0cb6a7579aa395033816e6dab3c9f) Players with a missing skin sprite draw the default skin, not nothing ### 📊 Changes **2 files changed** (+13 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+3 -1) 📝 `crates/horizon-client/src/mobs/render.rs` (+10 -1) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4096 **Cause:** not reproduced. The issue only says the remote player is invisible on cracked or official servers. This change is defensive and is based on code reading. A player whose skin sprite is missing from the atlas draws no body, which could look like the reported invisibility. **Change:** a player or mannequin with no skin sprite draws with the default skin texture (`mobs/render.rs`). `again_skin` in `game/remote.rs` counts a skin as stored only when its sprite is in the atlas, so a missing one is requested again. **Tested:** `cargo fmt --check`, `cargo clippy -p horizon-client --all-targets -- -D warnings`, `cargo test -p horizon-client-render --lib skin` (11 passed), `cargo test -p horizon-client --bins` (191 and 18; 3 ignored) and `cargo test -p horizon-client --lib mobs` (146; 7 ignored) pass. No new test was added. **Not tested:** no reproduction on a cracked or official server, so it is not confirmed that this is the cause. The `horizon-client` skin test filter ran 0 tests. No vanilla parity run (no `.local` vanilla data). `tools/pr_ready.py` not run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:29 +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#5422
No description provided.