[PR #7126] [MERGED] Clear stale client-001.tsv rows main already implements #7359

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-client-001-rows


📝 Commits (1)

  • 1ff67bc Port map: clear client-001 rows the tree already implements

📊 Changes

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

View changed files

📝 tools/port_map/client-001.tsv (+5 -5)

📄 Description

tools/port_map/client-001.tsv: rows that still claimed a behaviour was missing, or a gap that has since closed.

Rows that became port

row port
ClientChunkCache.replaceBiomes crates/horizon-client/src/game/remote_chunks.rs::Game::remote_chunks_biomes — each column takes the packet's biomes per section, then it and its neighbours are marked dirty so their sections are drawn again (/fillbiome reaches the client)
ClientConfigurationPacketListenerImpl.handleUpdateTags crates/horizon-client/src/net.rs::configure — UpdateTags fills the registry's tags before the play state, so a datapack's tags are the server's
ClientLevel.playSound crates/horizon-client-render/src/audio.rs::Audio::play_distance_delayed — a sound over 10 blocks from the camera starts sqrt(distance)/40 s later (Audio::play_after)

Rows whose recorded gap has closed

  • ClientConfigurationPacketListenerImpl.handleCodeOfConduct — the screen shows the text with the not-again box, Acknowledge and Disconnect before the connection continues (game/code_of_conduct.rs).
  • ClientLevel.getPrecipitationAt — no loaded column, no answer (the chunk lookup fails, so an unloaded column gives none as vanilla does).

python3 tools/port_ledger.py build --jar <game>/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/client-001.tsv → 117 rows, no problems. (The index has to come from client.jar; the 26.3 server.jar is the bundler and carries no client classes.)

Proven: every citation names a function that exists and is reached — remote_chunks_biomes is the ChunksBiomes arm of the play packet dispatch, configure handles UpdateTags next to RegistryData, and play_distance_delayed is called for every sound flagged delayed in game/render_tick.rs. The vanilla side was read with javap -p -c -constants -cp /tmp/cj: ClientChunkCache.replaceBiomes keeps the same inRange check and the same "not in the view range" log line, ClientConfigurationPacketListenerImpl.handleUpdateTags appends the packet's tags to the registry data collector, and ClientLevel.playSound delays by sqrt(distanceSqr) / 40.0 only when distanceSqr > 100.0.

Not proven: nothing here was exercised in a running game. Left missing, all still absent from the tree: ChunkBatchSizeCalculator.onBatchFinished (every ChunkBatchFinished is answered with a fixed 64 chunks per tick), onPacketError, sendDeferredPackets/sendWhen, the whole of ClientDebugSubscriber, ClientLevel.shouldTickDeath, ClientLevel.getPushableEntities.


🔄 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/7126 **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-client-001-rows` --- ### 📝 Commits (1) - [`1ff67bc`](https://github.com/horizon-rust/horizon/commit/1ff67bc1a9c4752af716e4cd53dd5f7b26f19fe3) Port map: clear client-001 rows the tree already implements ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client-001.tsv` (+5 -5) </details> ### 📄 Description `tools/port_map/client-001.tsv`: rows that still claimed a behaviour was missing, or a gap that has since closed. ### Rows that became `port` | row | port | | --- | --- | | `ClientChunkCache.replaceBiomes` | `crates/horizon-client/src/game/remote_chunks.rs::Game::remote_chunks_biomes` — each column takes the packet's biomes per section, then it and its neighbours are marked dirty so their sections are drawn again (`/fillbiome` reaches the client) | | `ClientConfigurationPacketListenerImpl.handleUpdateTags` | `crates/horizon-client/src/net.rs::configure` — `UpdateTags` fills the registry's tags before the play state, so a datapack's tags are the server's | | `ClientLevel.playSound` | `crates/horizon-client-render/src/audio.rs::Audio::play_distance_delayed` — a sound over 10 blocks from the camera starts `sqrt(distance)/40` s later (`Audio::play_after`) | ### Rows whose recorded gap has closed - `ClientConfigurationPacketListenerImpl.handleCodeOfConduct` — the screen shows the text with the not-again box, Acknowledge and Disconnect before the connection continues (`game/code_of_conduct.rs`). - `ClientLevel.getPrecipitationAt` — no loaded column, no answer (the chunk lookup fails, so an unloaded column gives none as vanilla does). `python3 tools/port_ledger.py build --jar <game>/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/client-001.tsv` → `117 rows, no problems.` (The index has to come from `client.jar`; the 26.3 `server.jar` is the bundler and carries no client classes.) **Proven:** every citation names a function that exists and is reached — `remote_chunks_biomes` is the `ChunksBiomes` arm of the play packet dispatch, `configure` handles `UpdateTags` next to `RegistryData`, and `play_distance_delayed` is called for every sound flagged delayed in `game/render_tick.rs`. The vanilla side was read with `javap -p -c -constants -cp /tmp/cj`: `ClientChunkCache.replaceBiomes` keeps the same `inRange` check and the same "not in the view range" log line, `ClientConfigurationPacketListenerImpl.handleUpdateTags` appends the packet's tags to the registry data collector, and `ClientLevel.playSound` delays by `sqrt(distanceSqr) / 40.0` only when `distanceSqr > 100.0`. **Not proven:** nothing here was exercised in a running game. Left `missing`, all still absent from the tree: `ChunkBatchSizeCalculator.onBatchFinished` (every `ChunkBatchFinished` is answered with a fixed 64 chunks per tick), `onPacketError`, `sendDeferredPackets`/`sendWhen`, the whole of `ClientDebugSubscriber`, `ClientLevel.shouldTickDeath`, `ClientLevel.getPushableEntities`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:38:17 +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#7359
No description provided.