[PR #2667] [MERGED] Track a vehicle as far as its widest passenger #4520

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

📋 Pull Request Information

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

Base: main ← Head: fix/passenger-tracking-range


📝 Commits (1)

  • cc0f8f8 Track a vehicle as far as its widest passenger

📊 Changes

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

View changed files

📝 crates/horizon-client/src/lan/entity.rs (+18 -0)

📄 Description

What and why

A client stopped seeing a vehicle (a boat, a horse, a minecart) at the vehicle's own tracking range, even when a rider with a longer range was still in sight. The rider then disappeared before its mount, or hung in the air.

A vehicle is now tracked as far as the widest range among its vehicle and all of its passengers, passengers of passengers included. The view distance cap and the entity-broadcast-range-percentage scaling apply to that range as before.

Vanilla reference

  • ChunkMap.TrackedEntity.getEffectiveRange
  • Entity.getIndirectPassengers

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/2667 **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/passenger-tracking-range` --- ### 📝 Commits (1) - [`cc0f8f8`](https://github.com/horizon-rust/horizon/commit/cc0f8f8a50b4a4fcc6924265d38920700987c89a) Track a vehicle as far as its widest passenger ### 📊 Changes **1 file changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/entity.rs` (+18 -0) </details> ### 📄 Description ## What and why A client stopped seeing a vehicle (a boat, a horse, a minecart) at the vehicle's own tracking range, even when a rider with a longer range was still in sight. The rider then disappeared before its mount, or hung in the air. A vehicle is now tracked as far as the widest range among its vehicle and all of its passengers, passengers of passengers included. The view distance cap and the `entity-broadcast-range-percentage` scaling apply to that range as before. ## Vanilla reference - `ChunkMap.TrackedEntity.getEffectiveRange` - `Entity.getIndirectPassengers` ## 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:46 +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#4520
No description provided.