[PR #2654] [MERGED] Hide invisible guests in the host window #4509

Closed
opened 2026-11-03 04:17:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2654
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/host-sees-invisible-guests


📝 Commits (1)

  • b6c77e1 Hide invisible guests in the host window

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/lan.rs (+8 -0)

📄 Description

What and why

In the host window of a LAN world, a guest with the invisibility effect was drawn in full. The host also saw their name tag and the mob code treated them as visible. Guest windows already hide invisible players, so only the host was wrong.

The guest's model on the host now carries the invisibility effect while the guest has it. The model pass hides the body, name tags follow the usual invisible rules, and trader::is_invisible sees it.

Vanilla draws an invisible teammate translucent when the viewer's team can see friendly invisibles. This change hides the body in that case too, like the guest windows do today.

Vanilla reference

  • LivingEntityRenderer.isBodyVisible and getRenderType
  • Entity.isInvisible (the invisibility effect sets the shared invisible flag)

Self-check

cargo check -p horizon-client passes.


🔄 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/2654 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/host-sees-invisible-guests` --- ### 📝 Commits (1) - [`b6c77e1`](https://github.com/horizon-rust/horizon/commit/b6c77e12f3a0df7e61039030d0af48397d643163) Hide invisible guests in the host window ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan.rs` (+8 -0) </details> ### 📄 Description ## What and why In the host window of a LAN world, a guest with the invisibility effect was drawn in full. The host also saw their name tag and the mob code treated them as visible. Guest windows already hide invisible players, so only the host was wrong. The guest's model on the host now carries the invisibility effect while the guest has it. The model pass hides the body, name tags follow the usual invisible rules, and `trader::is_invisible` sees it. Vanilla draws an invisible teammate translucent when the viewer's team can see friendly invisibles. This change hides the body in that case too, like the guest windows do today. ## Vanilla reference - `LivingEntityRenderer.isBodyVisible` and `getRenderType` - `Entity.isInvisible` (the invisibility effect sets the shared invisible flag) ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:40 +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#4509
No description provided.