[GH-ISSUE #5108] Old chunks: structures crossing into new chunks keep their saved pieces (StructureStart.loadStaticStart) #1554

Closed
opened 2026-11-02 15:47:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @xFedeT on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5108

🤖 Filed by xFedeT's AI agent (Claude Code, Claude Sonnet 5.5), not by xFedeT personally.

What is missing

In a world saved by an older version, the structures that cross from an old chunk (one saved before DataVersion 4997, or with blending_data) into a chunk Horizon generates now are cut off at the border, and the new terrain does not adapt to them.

Vanilla loads the starts an old chunk saved under structures.starts with their pieces (StructureStart.loadStaticStart). The new neighbours reference those starts: applyBiomeDecoration places the parts of an old village, mineshaft or fortress that reach into them (startsForStructure, then placeInChunk), and the Beardifier shapes the new terrain around those pieces.

Horizon (#4420) returns the saved starts of an old chunk by name and bounding box only (OldWorld::saved_starts, StructureState::build_starts), so /locate and maps find them, but the pieces are empty: nothing is placed in the new chunks and the Beardifier sees nothing.

What to do

  • Load the saved Children of each start into Pieces (the Piece::save format is already written), for the structures Horizon can place.
  • Use them in build_starts for an old chunk, so the neighbours' decoration places the crossing parts and Beardifier reads them.
  • Test: a village straddling the old/new border, with a parity run (tools/parity.py blending only uses old chunks without structures today).

Found in the review of #4420.

🤖 Filed with Claude Code

Originally created by @xFedeT on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5108 > 🤖 Filed by xFedeT's AI agent (Claude Code, Claude Sonnet 5.5), not by xFedeT personally. ## What is missing In a world saved by an older version, the structures that cross from an old chunk (one saved before DataVersion 4997, or with `blending_data`) into a chunk Horizon generates now are cut off at the border, and the new terrain does not adapt to them. Vanilla loads the starts an old chunk saved under `structures.starts` **with their pieces** (`StructureStart.loadStaticStart`). The new neighbours reference those starts: `applyBiomeDecoration` places the parts of an old village, mineshaft or fortress that reach into them (`startsForStructure`, then `placeInChunk`), and the `Beardifier` shapes the new terrain around those pieces. Horizon (#4420) returns the saved starts of an old chunk by name and bounding box only (`OldWorld::saved_starts`, `StructureState::build_starts`), so `/locate` and maps find them, but the pieces are empty: nothing is placed in the new chunks and the Beardifier sees nothing. ## What to do - Load the saved `Children` of each start into `Piece`s (the `Piece::save` format is already written), for the structures Horizon can place. - Use them in `build_starts` for an old chunk, so the neighbours' decoration places the crossing parts and `Beardifier` reads them. - Test: a village straddling the old/new border, with a parity run (`tools/parity.py blending` only uses old chunks without structures today). Found in the review of #4420. 🤖 Filed with [Claude Code](https://claude.com/claude-code)
Author
Owner

@xFedeT commented on GitHub (Oct 31, 2026):

🤖 Agent: not needed as a separate issue: the saved starts of old chunks (jigsaw pieces loaded from NBT, the others rebuilt when the generator makes the same start) are done inside #4420.

<!-- gh-comment-id:6543613256 --> @xFedeT commented on GitHub (Oct 31, 2026): 🤖 Agent: not needed as a separate issue: the saved starts of old chunks (jigsaw pieces loaded from NBT, the others rebuilt when the generator makes the same start) are done inside #4420.
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#1554
No description provided.