[PR #2872] [MERGED] Give a forced chunk vanilla's rings #4663

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

📋 Pull Request Information

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

Base: main ← Head: fix/forceload-rings


📝 Commits (4)

  • da877fe Give a forced chunk vanilla's rings
  • b901415 Merge remote-tracking branch 'upstream/main' into fix/forceload-rings
  • 231b309 Name the forced terrain ring where the protos are kept
  • b36a63f Merge current main and retain vanilla features save status

📊 Changes

2 files changed (+218 additions, -9 deletions)

View changed files

📝 crates/horizon-client-render/src/streaming.rs (+88 -9)
➕ crates/horizon-client/tests/forced_chunks.rs (+130 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 himself.

A forced chunk now generates and retains vanilla's surrounding rings: full chunks through ring two, features at ring three and terrain at ring four. The terrain ring remains available to decorate the feature ring. Unit and streaming integration tests cover the ring boundaries and lighting.

The decorated-proto save-status change has been removed following review. A proto whose features ran but whose light initialization did not still saves as minecraft:features. The merge resolution retains current main's streaming unload behavior in its new renderer crate.

Fixes #2785.

Vanilla reference: ChunkMap.FORCED_TICKET_LEVEL (31), TicketStorage.updateChunkForced, ChunkTracker.computeLevelFromNeighbor, ChunkLevel.generationStatus, and the separate ChunkStatusTasks.generateFeatures/initializeLight steps.

pr_ready (tools/pr_ready.py --quick --base hr/main on cachyos-x8664, against hr/main at d203ca04b, 5 min 57 s)

Check Result
Scope ✅ 2 files, +218 −9
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 408 passed (24 s)
rustfmt ✅ (5 s)
clippy ✅ (1 min 13 s)
tests: horizon-client, horizon-client-render ✅ 1300 passed (3 min 14 s)
doc tests ✅ 0 passed (41 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 104 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 92 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with OpenAI Codex.


🔄 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/2872 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/forceload-rings` --- ### 📝 Commits (4) - [`da877fe`](https://github.com/horizon-rust/horizon/commit/da877fe1db7869108536b32a177b1b317c06a95d) Give a forced chunk vanilla's rings - [`b901415`](https://github.com/horizon-rust/horizon/commit/b901415c8012542776bb55893d329fdf607bddf5) Merge remote-tracking branch 'upstream/main' into fix/forceload-rings - [`231b309`](https://github.com/horizon-rust/horizon/commit/231b309634c22387f25294506a175cf5268e0c94) Name the forced terrain ring where the protos are kept - [`b36a63f`](https://github.com/horizon-rust/horizon/commit/b36a63fb397a4712dd089dcfa1984b0a68212daa) Merge current main and retain vanilla features save status ### 📊 Changes **2 files changed** (+218 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/streaming.rs` (+88 -9) ➕ `crates/horizon-client/tests/forced_chunks.rs` (+130 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 himself. A forced chunk now generates and retains vanilla's surrounding rings: full chunks through ring two, features at ring three and terrain at ring four. The terrain ring remains available to decorate the feature ring. Unit and streaming integration tests cover the ring boundaries and lighting. The decorated-proto save-status change has been removed following review. A proto whose features ran but whose light initialization did not still saves as `minecraft:features`. The merge resolution retains current main's streaming unload behavior in its new renderer crate. Fixes #2785. Vanilla reference: `ChunkMap.FORCED_TICKET_LEVEL` (31), `TicketStorage.updateChunkForced`, `ChunkTracker.computeLevelFromNeighbor`, `ChunkLevel.generationStatus`, and the separate `ChunkStatusTasks.generateFeatures`/`initializeLight` steps. **pr_ready** (`tools/pr_ready.py --quick --base hr/main` on cachyos-x8664, against hr/main at d203ca04b, 5 min 57 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +218 −9 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 408 passed (24 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (1 min 13 s) | | tests: horizon-client, horizon-client-render | ✅ 1300 passed (3 min 14 s) | | doc tests | ✅ 0 passed (41 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 104 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 92 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:01 +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#4663
No description provided.