[PR #7047] [MERGED] Clear stale game2-019.tsv rows main already implements #7293

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game2-019.tsv


📝 Commits (1)

  • ab5b164 chore(port_map): clear stale game2-019.tsv rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/game2-019.tsv (+6 -6)

📄 Description

tools/port_map/game2-019.tsv: five rows whose verdict still said missing while the tree implements them, and one citation that no longer resolves.

  • ChunkGeneratorStructureState.createForFlat -> inline, crates/horizon-world/src/worldgen/generator.rs::OverworldGenerator::flat: the flat generator's structure state (the flat level's minimum Y, structure_overrides narrowed by restrict_to, stronghold rings on seed 0).
  • ProtoChunk.unpackOffsetCoordinates -> inline, crates/horizon-client/src/save.rs::decode_proto: the stored PostProcessing shorts are unpacked to block positions (chunk x/z, the section's Y, the packed 4-bit offsets).
  • ProtoChunk.getBlockEntityNbtForSaving -> port, crates/horizon-client/src/save.rs::encode_block_entity: the tag a chunk writes per block entity (id, x, y, z, keepPacked, the components).
  • IOWorker.isOldChunkAround -> port, crates/horizon-client/src/old_world.rs::SavedOldWorld::is_old_chunk_around: each region file in range is scanned once (SaveDir::old_chunk_bits) and searched for an old chunk.
  • IOWorker.isOldChunk -> inline, crates/horizon-client/src/save.rs::SaveDir::old_chunk_bits: the per-record test, a DataVersion below 4997 or a blending_data compound.
  • RegionFile.writeHeader -> same verdict, crates/horizon-world/src/region.rs::RegionFile::write_header (the cited write_header_entry no longer exists; the function writes both header sectors from memory).

The other rows of the file were rechecked and stay as they are: ChunkGenerator.fetchReferences is not read back (a start's references is saved as 0), LevelChunk.runPostLoad/clearAllBlockEntities, LevelChunkSection.recalcBlockCounts and PalettedContainer.getAll/count have no counterpart (PalettedContainer has has/maybe_has only), and ProtoChunk.setStartForStructure/setPersistedStatus, IOWorker.scanChunk are untouched.

Validation (local ledger build from current main, jars on this host):

PORT_LEDGER_OUT=/tmp/pledger-sub5 python3 tools/port_ledger.py build --jar /tmp/client-26.3.jar --jar /tmp/vanilla-sb/META-INF/versions/26.3/server-26.3.jar
PORT_LEDGER_OUT=/tmp/pledger-sub5 python3 tools/port_ledger.py map-check tools/port_map/game2-019.tsv
146 rows, no problems.

Proven: 146 rows, no problems.

Not proven: no in-game check; nothing was run in the client.


🔄 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/7047 **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/ledger-game2-019.tsv` --- ### 📝 Commits (1) - [`ab5b164`](https://github.com/horizon-rust/horizon/commit/ab5b1640d2dc1124b96f30b93562bf1acff916bf) chore(port_map): clear stale game2-019.tsv rows main already implements ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-019.tsv` (+6 -6) </details> ### 📄 Description `tools/port_map/game2-019.tsv`: five rows whose verdict still said `missing` while the tree implements them, and one citation that no longer resolves. - `ChunkGeneratorStructureState.createForFlat` -> `inline`, `crates/horizon-world/src/worldgen/generator.rs::OverworldGenerator::flat`: the flat generator's structure state (the flat level's minimum Y, `structure_overrides` narrowed by `restrict_to`, stronghold rings on seed 0). - `ProtoChunk.unpackOffsetCoordinates` -> `inline`, `crates/horizon-client/src/save.rs::decode_proto`: the stored `PostProcessing` shorts are unpacked to block positions (chunk x/z, the section's Y, the packed 4-bit offsets). - `ProtoChunk.getBlockEntityNbtForSaving` -> `port`, `crates/horizon-client/src/save.rs::encode_block_entity`: the tag a chunk writes per block entity (`id`, `x`, `y`, `z`, `keepPacked`, the components). - `IOWorker.isOldChunkAround` -> `port`, `crates/horizon-client/src/old_world.rs::SavedOldWorld::is_old_chunk_around`: each region file in range is scanned once (`SaveDir::old_chunk_bits`) and searched for an old chunk. - `IOWorker.isOldChunk` -> `inline`, `crates/horizon-client/src/save.rs::SaveDir::old_chunk_bits`: the per-record test, a `DataVersion` below 4997 or a `blending_data` compound. - `RegionFile.writeHeader` -> same verdict, `crates/horizon-world/src/region.rs::RegionFile::write_header` (the cited `write_header_entry` no longer exists; the function writes both header sectors from memory). The other rows of the file were rechecked and stay as they are: `ChunkGenerator.fetchReferences` is not read back (a start's `references` is saved as 0), `LevelChunk.runPostLoad`/`clearAllBlockEntities`, `LevelChunkSection.recalcBlockCounts` and `PalettedContainer.getAll`/`count` have no counterpart (`PalettedContainer` has `has`/`maybe_has` only), and `ProtoChunk.setStartForStructure`/`setPersistedStatus`, `IOWorker.scanChunk` are untouched. Validation (local ledger build from current `main`, jars on this host): PORT_LEDGER_OUT=/tmp/pledger-sub5 python3 tools/port_ledger.py build --jar /tmp/client-26.3.jar --jar /tmp/vanilla-sb/META-INF/versions/26.3/server-26.3.jar PORT_LEDGER_OUT=/tmp/pledger-sub5 python3 tools/port_ledger.py map-check tools/port_map/game2-019.tsv 146 rows, no problems. **Proven:** `146 rows, no problems.` **Not proven:** no in-game check; nothing was run in the client. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:37:15 +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#7293
No description provided.