[PR #2423] [MERGED] Scale entity tracking range by entity-broadcast-range-percentage #4300

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

📋 Pull Request Information

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

Base: main ← Head: fix/entity-broadcast-range


📝 Commits (1)

  • e7e6e5b Scale entity tracking range by entity-broadcast-range-percentage

📊 Changes

3 files changed (+17 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/dedicated.rs (+3 -0)
📝 crates/horizon-client/src/lan/entity.rs (+10 -4)
📝 crates/horizon-client/src/lan/hub.rs (+4 -0)

📄 Description

What and why

entity-broadcast-range-percentage in server.properties did nothing: a dedicated server always sent entities within their type's normal tracking range. Now the range of every entity type is scaled by the percentage (in blocks, rounded down) before it is capped by the player's view distance, so 50 halves how far away mobs and items are shown and 200 doubles it.

Vanilla reference

  • DedicatedServer.getScaledTrackingDistance
  • ChunkMap.TrackedEntity.scaledRange / updatePlayer

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/2423 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/entity-broadcast-range` --- ### 📝 Commits (1) - [`e7e6e5b`](https://github.com/horizon-rust/horizon/commit/e7e6e5bc07556c8c4e15fcda5768517007001e59) Scale entity tracking range by entity-broadcast-range-percentage ### 📊 Changes **3 files changed** (+17 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dedicated.rs` (+3 -0) 📝 `crates/horizon-client/src/lan/entity.rs` (+10 -4) 📝 `crates/horizon-client/src/lan/hub.rs` (+4 -0) </details> ### 📄 Description ## What and why `entity-broadcast-range-percentage` in `server.properties` did nothing: a dedicated server always sent entities within their type's normal tracking range. Now the range of every entity type is scaled by the percentage (in blocks, rounded down) before it is capped by the player's view distance, so 50 halves how far away mobs and items are shown and 200 doubles it. ## Vanilla reference - `DedicatedServer.getScaledTrackingDistance` - `ChunkMap.TrackedEntity.scaledRange` / `updatePlayer` ## 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:16:11 +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#4300
No description provided.