[PR #7295] [MERGED] Port map: ChunkBiomeData's extract and size are from_biomes #7471

Closed
opened 2026-11-03 06:39:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: chore/vol-a-rest-012


📝 Commits (1)

  • 68044bf port_map: ChunkBiomeData's extract and size are from_biomes

📊 Changes

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

View changed files

📝 tools/port_map/rest-012.tsv (+2 -2)

📄 Description

Two rows for ClientboundChunksBiomesPacket.ChunkBiomeData in
tools/port_map/rest-012.tsv: the packet's biome blob is written by
ChunkBiomeData::from_biomes.

row before after
ChunkBiomeData.extractChunkData missing crates/horizon-protocol/src/packets/play.rs::ChunkBiomeData::from_biomes
ChunkBiomeData.calculateChunkSize missing crates/horizon-protocol/src/packets/play.rs::ChunkBiomeData::from_biomes (inline)

Citations checked in the tree

  • ChunkBiomeData is the packet's pos/buffer pair, and its doc names
    ClientboundChunksBiomesPacket.ChunkBiomeData and extractChunkData;
    from_biomes writes each section's Paletted biome container into a Writer
    in order, which is the extract.
  • The buffer carries its own length (Vec<u8> => BytesN<2097152>), so nothing
    computes or prefixes calculateChunkSize's byte count; that row is the writer,
    inline.
  • The reading side is here too: biomes(count, biome_bits) decodes the
    containers back for LevelChunk.replaceBiomes, used by
    remote_chunks_biomes.

Map check

python3 tools/port_ledger.py map-check tools/port_map/rest-012.tsv
149 rows, no problems.

Proven: from_biomes exists at that path, writes the containers in section
order and names extractChunkData; the map-check passes on the file.

Not proven: no /fillbiome was run against a client. Rows left alone:
VecDelta.Stepped.tryEncode (only linear deltas are built,
lan/entity.rs:487), ClientboundCommandsPacket.validateEntries (out-of-range
child indexes are dropped, not rejected) and the structure, jigsaw and minecart
packets the client never sends.


🔄 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/7295 **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/vol-a-rest-012` --- ### 📝 Commits (1) - [`68044bf`](https://github.com/horizon-rust/horizon/commit/68044bf45ac55a6e2a4e4c02bd04c0baa00b3d3a) port_map: ChunkBiomeData's extract and size are from_biomes ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-012.tsv` (+2 -2) </details> ### 📄 Description Two rows for `ClientboundChunksBiomesPacket.ChunkBiomeData` in `tools/port_map/rest-012.tsv`: the packet's biome blob is written by `ChunkBiomeData::from_biomes`. | row | before | after | | --- | --- | --- | | `ChunkBiomeData.extractChunkData` | missing | `crates/horizon-protocol/src/packets/play.rs::ChunkBiomeData::from_biomes` | | `ChunkBiomeData.calculateChunkSize` | missing | `crates/horizon-protocol/src/packets/play.rs::ChunkBiomeData::from_biomes` (inline) | **Citations checked in the tree** - `ChunkBiomeData` is the packet's `pos`/`buffer` pair, and its doc names `ClientboundChunksBiomesPacket.ChunkBiomeData` and `extractChunkData`; `from_biomes` writes each section's `Paletted` biome container into a `Writer` in order, which is the extract. - The buffer carries its own length (`Vec<u8> => BytesN<2097152>`), so nothing computes or prefixes `calculateChunkSize`'s byte count; that row is the writer, inline. - The reading side is here too: `biomes(count, biome_bits)` decodes the containers back for `LevelChunk.replaceBiomes`, used by `remote_chunks_biomes`. **Map check** ``` python3 tools/port_ledger.py map-check tools/port_map/rest-012.tsv 149 rows, no problems. ``` **Proven:** `from_biomes` exists at that path, writes the containers in section order and names `extractChunkData`; the map-check passes on the file. **Not proven:** no `/fillbiome` was run against a client. Rows left alone: `VecDelta.Stepped.tryEncode` (only linear deltas are built, `lan/entity.rs:487`), `ClientboundCommandsPacket.validateEntries` (out-of-range child indexes are dropped, not rejected) and the structure, jigsaw and minecart packets the client never sends. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:39:55 +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#7471
No description provided.