[PR #951] [MERGED] Paintings, frames, boats, armor stands, falling blocks and TNT tick only in entity-ticking chunks #2934

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

📋 Pull Request Information

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

Base: main ← Head: fix/entity-ticks-ticking-area


📝 Commits (1)

  • c755ca0 Tick paintings, frames, boats, armor stands, falling blocks and TNT only in entity-ticking chunks

📊 Changes

6 files changed (+37 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+5 -0)
📝 crates/horizon-client/src/game/armor_stands.rs (+5 -0)
📝 crates/horizon-client/src/game/boats.rs (+6 -1)
📝 crates/horizon-client/src/game/frames.rs (+7 -0)
📝 crates/horizon-client/src/game/paintings.rs (+8 -0)
📝 crates/horizon-client/src/game/tnt.rs (+6 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Follows #931 (#890).

The problem

ServerLevel.tick ticks an entity only where the chunk tickets make it entity ticking: inEntityTickingRange, and EntityTickList holds only the entities of entity-ticking chunks. #931 ported the tickets. Mobs, items and minecarts already check them, but paintings, item frames, boats, armor stands, falling blocks and primed TNT ticked wherever they were loaded. TNT past the simulation distance went off, and sand fell there.

What this changes

Each of these six ticks now skips the entities outside entity_ticking_area(), the check mobs and minecarts use:

  • paintings, from the centre of their box;
  • item frames, from their centre;
  • boats, except the one the local player rides;
  • armor stands;
  • falling blocks;
  • primed TNT.

The order of the ticks is unchanged.

Proof

Check Result
cargo clippy -p horizon-client --all-targets -D warnings clean
integration commit with #950 and #952 over a9bcaa6e: workspace clippy, cargo test -p horizon-client -p horizon-world clean, all ok
integration: parity.py --changed origin/main 301 passed, 0 failed (every harness)

Dedicated-server check. This is an ad hoc script, not in the repo. A flat world runs with simulation distance 4 and view distance 10, and one idle bot stands at 0, 0. The script summons TNT at y -60 and sand at y -40 one chunk away and seven chunks away. Seven chunks out is loaded but not entity ticking. After 10 s it tests the blocks: has the grass under the TNT gone, and has the sand landed?

Build Chunk 1: TNT exploded / sand landed Chunk 7: TNT exploded / sand landed
before (a build without this change) yes / yes yes / yes
this branch yes / yes no / no

🤖 Generated with Claude Code


🔄 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/951 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/entity-ticks-ticking-area` --- ### 📝 Commits (1) - [`c755ca0`](https://github.com/horizon-rust/horizon/commit/c755ca04f5bb1fae597841848479b362fff935e9) Tick paintings, frames, boats, armor stands, falling blocks and TNT only in entity-ticking chunks ### 📊 Changes **6 files changed** (+37 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -0) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+5 -0) 📝 `crates/horizon-client/src/game/boats.rs` (+6 -1) 📝 `crates/horizon-client/src/game/frames.rs` (+7 -0) 📝 `crates/horizon-client/src/game/paintings.rs` (+8 -0) 📝 `crates/horizon-client/src/game/tnt.rs` (+6 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Follows #931 (#890). ## The problem `ServerLevel.tick` ticks an entity only where the chunk tickets make it entity ticking: `inEntityTickingRange`, and `EntityTickList` holds only the entities of entity-ticking chunks. #931 ported the tickets. Mobs, items and minecarts already check them, but paintings, item frames, boats, armor stands, falling blocks and primed TNT ticked wherever they were loaded. TNT past the simulation distance went off, and sand fell there. ## What this changes Each of these six ticks now skips the entities outside `entity_ticking_area()`, the check mobs and minecarts use: - paintings, from the centre of their box; - item frames, from their centre; - boats, except the one the local player rides; - armor stands; - falling blocks; - primed TNT. The order of the ticks is unchanged. ## Proof | Check | Result | | --- | --- | | `cargo clippy -p horizon-client --all-targets -D warnings` | clean | | integration commit with #950 and #952 over `a9bcaa6e`: workspace clippy, `cargo test -p horizon-client -p horizon-world` | clean, all ok | | integration: `parity.py --changed origin/main` | 301 passed, 0 failed (every harness) | **Dedicated-server check.** This is an ad hoc script, not in the repo. A flat world runs with simulation distance 4 and view distance 10, and one idle bot stands at 0, 0. The script summons TNT at y -60 and sand at y -40 one chunk away and seven chunks away. Seven chunks out is loaded but not entity ticking. After 10 s it tests the blocks: has the grass under the TNT gone, and has the sand landed? | Build | Chunk 1: TNT exploded / sand landed | Chunk 7: TNT exploded / sand landed | | --- | --- | --- | | before (a build without this change) | yes / yes | yes / yes | | this branch | yes / yes | **no / no** | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:00:13 +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#2934
No description provided.