[PR #4007] [MERGED] Invisible players keep their armour, elytra and held items #5352

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

📋 Pull Request Information

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

Base: main ← Head: fix/issue-4000-invisible-armor


📝 Commits (1)

  • 5459f6e Invisible players keep their armour, elytra and held items

📊 Changes

1 file changed (+18 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+18 -5)

📄 Description

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

Fixes #4000

Cause: mob_geometry skipped every mob with the invisible flag, so an invisible remote player lost its armour, elytra and held items too. In vanilla, LivingEntityRenderer.submit skips only the body; the layers (armour, elytra, held item, worn pumpkin) still draw.

Change: for a player with the invisible flag (and no glow outline), draw render_layers (armour only, no body), the elytra and the held/worn items. The cape and the spin-attack effect stay hidden. Non-player mobs are unchanged.

Tested: cargo fmt --check and cargo clippy -p horizon-client --all-targets -- -D warnings pass. cargo test -p horizon-client --lib: 705 passed, 1 failed (title::tests::each_world_preset_writes_its_own_generator, a Windows path error NotADirectory in a title-screen test this change does not touch).

Not tested: no in-game run (no vanilla data in .local/), no unit test (the path needs a full Game), no parity harness, no pr_ready.py.


🔄 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/4007 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/issue-4000-invisible-armor` --- ### 📝 Commits (1) - [`5459f6e`](https://github.com/horizon-rust/horizon/commit/5459f6e2329fb246282a77d57f7833be346ad782) Invisible players keep their armour, elytra and held items ### 📊 Changes **1 file changed** (+18 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+18 -5) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4000 **Cause:** `mob_geometry` skipped every mob with the invisible flag, so an invisible remote player lost its armour, elytra and held items too. In vanilla, `LivingEntityRenderer.submit` skips only the body; the layers (armour, elytra, held item, worn pumpkin) still draw. **Change:** for a player with the invisible flag (and no glow outline), draw `render_layers` (armour only, no body), the elytra and the held/worn items. The cape and the spin-attack effect stay hidden. Non-player mobs are unchanged. **Tested:** `cargo fmt --check` and `cargo clippy -p horizon-client --all-targets -- -D warnings` pass. `cargo test -p horizon-client --lib`: 705 passed, 1 failed (`title::tests::each_world_preset_writes_its_own_generator`, a Windows path error `NotADirectory` in a title-screen test this change does not touch). **Not tested:** no in-game run (no vanilla data in `.local/`), no unit test (the path needs a full `Game`), no parity harness, no `pr_ready.py`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:59 +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#5352
No description provided.