[PR #7361] [MERGED] port map: classes-05's BlendingData row is a home row #7547

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7361
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/mapgap-classes-05


📝 Commits (1)

  • 5a6990c port map: classes-05's BlendingData row is a home row

📊 Changes

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

View changed files

📝 tools/port_map/classes-05.tsv (+1 -1)

📄 Description

tools/port_map/classes-05.tsv row 55 carried a verdict the ledger refuses: port_ledger.py gaps --kind map reports BlendingData: a class row takes skip:<reason>, missing or home, not port. BlendingData is a class — its nested Packed, HeightConsumer, DensityConsumer and BiomeConsumer have rows of their own in the same file — and the where cell named the class itself, so the row was pointing at its own home file.

row was now
55 BlendingData port crates/horizon-world/src/worldgen/blending.rs::BlendingData home crates/horizon-world/src/worldgen/blending.rs
  • crates/horizon-world/src/worldgen/blending.rs holds BlendingData (line 101) and Blender: BlendingData::unpack is BlendingData.unpack (the saved blending_data), BlendingData::pack is its saved form, and BlendingData::calculated is the doc's getOrUpdateBlendingData + calculateData — the data with the border columns read from the old chunk. The note named calculateData, which no fn is called; it names the Rust fn now and keeps everything else (heights, densities, biomes, and the client reading saved chunks in old_world.rs).

Map-check:

$ PORT_LEDGER_OUT=/tmp/led-mapgap python3 tools/port_ledger.py map-check tools/port_map/classes-05.tsv
227 rows, no problems.

Proven: blending.rs defines BlendingData and the three fns the note now names (unpack at 144, pack at 161, calculated at 203, whose doc gives the vanilla pair); the where cell is a file that exists, which is all a home row claims.

Not proven: that the class's remaining methods are answered one by one — a home row places a class, it does not port sideByGenerationAge, read1/read7 or the iterate* helpers, and their status is unchanged by this row. No behaviour claim is made here beyond where the class lives.


🔄 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/7361 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/mapgap-classes-05` --- ### 📝 Commits (1) - [`5a6990c`](https://github.com/horizon-rust/horizon/commit/5a6990c6766ae15cd455d1e677601c70ec85e133) port map: classes-05's BlendingData row is a home row ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-05.tsv` (+1 -1) </details> ### 📄 Description `tools/port_map/classes-05.tsv` row 55 carried a verdict the ledger refuses: `port_ledger.py gaps --kind map` reports `BlendingData: a class row takes skip:<reason>, missing or home, not port`. `BlendingData` is a class — its nested `Packed`, `HeightConsumer`, `DensityConsumer` and `BiomeConsumer` have rows of their own in the same file — and the `where` cell named the class itself, so the row was pointing at its own home file. | row | was | now | | --- | --- | --- | | 55 `BlendingData` | `port crates/horizon-world/src/worldgen/blending.rs::BlendingData` | `home crates/horizon-world/src/worldgen/blending.rs` | - `crates/horizon-world/src/worldgen/blending.rs` holds `BlendingData` (line 101) and `Blender`: `BlendingData::unpack` is `BlendingData.unpack` (the saved `blending_data`), `BlendingData::pack` is its saved form, and `BlendingData::calculated` is the doc's `getOrUpdateBlendingData` + `calculateData` — the data with the border columns read from the old chunk. The note named `calculateData`, which no fn is called; it names the Rust fn now and keeps everything else (heights, densities, biomes, and the client reading saved chunks in `old_world.rs`). Map-check: ``` $ PORT_LEDGER_OUT=/tmp/led-mapgap python3 tools/port_ledger.py map-check tools/port_map/classes-05.tsv 227 rows, no problems. ``` **Proven:** `blending.rs` defines `BlendingData` and the three fns the note now names (`unpack` at 144, `pack` at 161, `calculated` at 203, whose doc gives the vanilla pair); the `where` cell is a file that exists, which is all a `home` row claims. **Not proven:** that the class's remaining methods are answered one by one — a `home` row places a class, it does not port `sideByGenerationAge`, `read1`/`read7` or the `iterate*` helpers, and their status is unchanged by this row. No behaviour claim is made here beyond where the class lives. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:19:32 +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#7547
No description provided.