[PR #6945] [MERGED] Clear stale client2-014 rows main already implements #7218

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-client2-014


📝 Commits (1)

  • 2f4c6ab port_map: clear stale client2-014 rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/client2-014.tsv (+11 -11)

📄 Description

Eleven missing/unsure rows in tools/port_map/client2-014.tsv named no port for code the tree has; they now cite it.

  • ConnectScreen.init -> port crates/horizon-client-render/src/level_loading.rs::draw_connecting: the status centred at (w/2, h/2 - 50) and Cancel at connect_cancel's corner while the connection can still be cancelled. Whether Escape aborts the join is still unresolved, and the row says so.
  • GenericWaitingScreen.extractRenderState -> port crates/horizon-client/src/title.rs::Title::draw_with_items: Mode::Backup draws the waiting title, the message and the animated dots while the backup runs, with the Created/Failed toast after it.
  • PauseScreen.rendersNowPlayingToast -> port crates/horizon-client/src/game/music.rs::Game::draw_music_toast: the pause menu draws the song name under the Pause and Pause and Toast settings while music is audible, instead of the toast; the Music Toast option still decides whether the toast exists.
  • RecoverWorldDataScreen.<init> -> port crates/horizon-client/src/title.rs::Title::open_recover: opening a world whose level.dat does not read switches to Mode::Recover, with the level.dat and level.dat_old entries, Restore and Back.
  • RecoverWorldDataScreen.attemptRestore -> port crates/horizon-client/src/title.rs::Title::attempt_restore: level.dat_old takes level.dat's place only when level.dat still reads broken and level.dat_old reads clean; anything else is a failed recovery.
  • RecoverWorldDataScreen.buildInfo -> port crates/horizon-client/src/title.rs::recover_info: "State from : " and the issue, green No issues or red Missing file / the read error, nothing for a level.dat_old that is just missing.
  • RecoverWorldDataScreen.collectIssue -> port crates/horizon-client/src/title.rs::recover_issues: the level.dat and level.dat_old issues the screen and the restore both read.
  • RecoverWorldDataScreen.repositionElements -> port crates/horizon-client/src/title.rs::recover_buttons_top: the centred column of title, message, issues, the restore row and Back, 8 apart; the widgets are built in Title::buttons.
  • Screen.fadeWidgets -> inline crates/horizon-client/src/title/onboarding.rs::Onboarding::fade: the onboarding screen's fade in on open and out on close, alpha Mth.clampedMap(fade, 0.5, 1, 0, 1) in Onboarding::widget_alpha; the other screens draw their widgets at full alpha.
  • Screen.isValidCharacterForName -> port crates/horizon-client/src/game/block_editor.rs::valid_character_for_name: the structure and command block editors' name field, one : before any / and / only after it.
  • TitleScreen.getMultiplayerDisabledReason -> port crates/horizon-client/src/title.rs::Title::buttons: the decision is the Multiplayer button's enabled flag from Title.allows_multiplayer (AccountStatus::allows_multiplayer: servers-allowed, a multiplayer ban, a forced name change); the reason component vanilla shows for it is not built, and the row says so.

map-check: 150 rows, no problems.

Proven: python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/client2-014.tsv -> 150 rows, no problems.
Not proven: no in-game check: the Recover World flow, the backup waiting screen, the connect Cancel button, the onboarding fade and the disabled Multiplayer button were read in the code, never opened in a running 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/6945 **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-client2-014` --- ### 📝 Commits (1) - [`2f4c6ab`](https://github.com/horizon-rust/horizon/commit/2f4c6ab64dce418b74f8581ba68bf7ba76e352cb) port_map: clear stale client2-014 rows main already implements ### 📊 Changes **1 file changed** (+11 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-014.tsv` (+11 -11) </details> ### 📄 Description Eleven `missing`/`unsure` rows in `tools/port_map/client2-014.tsv` named no port for code the tree has; they now cite it. - `ConnectScreen.init` -> `port` `crates/horizon-client-render/src/level_loading.rs::draw_connecting`: the status centred at (w/2, h/2 - 50) and Cancel at `connect_cancel`'s corner while the connection can still be cancelled. Whether Escape aborts the join is still unresolved, and the row says so. - `GenericWaitingScreen.extractRenderState` -> `port` `crates/horizon-client/src/title.rs::Title::draw_with_items`: `Mode::Backup` draws the waiting title, the message and the animated dots while the backup runs, with the Created/Failed toast after it. - `PauseScreen.rendersNowPlayingToast` -> `port` `crates/horizon-client/src/game/music.rs::Game::draw_music_toast`: the pause menu draws the song name under the Pause and Pause and Toast settings while music is audible, instead of the toast; the Music Toast option still decides whether the toast exists. - `RecoverWorldDataScreen.<init>` -> `port` `crates/horizon-client/src/title.rs::Title::open_recover`: opening a world whose level.dat does not read switches to `Mode::Recover`, with the level.dat and level.dat_old entries, Restore and Back. - `RecoverWorldDataScreen.attemptRestore` -> `port` `crates/horizon-client/src/title.rs::Title::attempt_restore`: level.dat_old takes level.dat's place only when level.dat still reads broken and level.dat_old reads clean; anything else is a failed recovery. - `RecoverWorldDataScreen.buildInfo` -> `port` `crates/horizon-client/src/title.rs::recover_info`: "State from <date>: " and the issue, green No issues or red Missing file / the read error, nothing for a level.dat_old that is just missing. - `RecoverWorldDataScreen.collectIssue` -> `port` `crates/horizon-client/src/title.rs::recover_issues`: the level.dat and level.dat_old issues the screen and the restore both read. - `RecoverWorldDataScreen.repositionElements` -> `port` `crates/horizon-client/src/title.rs::recover_buttons_top`: the centred column of title, message, issues, the restore row and Back, 8 apart; the widgets are built in `Title::buttons`. - `Screen.fadeWidgets` -> `inline` `crates/horizon-client/src/title/onboarding.rs::Onboarding::fade`: the onboarding screen's fade in on open and out on close, alpha `Mth.clampedMap(fade, 0.5, 1, 0, 1)` in `Onboarding::widget_alpha`; the other screens draw their widgets at full alpha. - `Screen.isValidCharacterForName` -> `port` `crates/horizon-client/src/game/block_editor.rs::valid_character_for_name`: the structure and command block editors' name field, one `:` before any `/` and `/` only after it. - `TitleScreen.getMultiplayerDisabledReason` -> `port` `crates/horizon-client/src/title.rs::Title::buttons`: the decision is the Multiplayer button's enabled flag from `Title.allows_multiplayer` (`AccountStatus::allows_multiplayer`: servers-allowed, a multiplayer ban, a forced name change); the reason component vanilla shows for it is not built, and the row says so. map-check: `150 rows, no problems.` **Proven:** `python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/client2-014.tsv` -> `150 rows, no problems.` **Not proven:** no in-game check: the Recover World flow, the backup waiting screen, the connect Cancel button, the onboarding fade and the disabled Multiplayer button were read in the code, never opened in a running 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:35:54 +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#7218
No description provided.