[PR #6848] [MERGED] Port map: five classes-08 rows main already ports #7140

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

📋 Pull Request Information

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

Base: main ← Head: fix/ledger-classes08-level


📝 Commits (1)

  • c6c858a port map: five classes-08 rows main already ports

📊 Changes

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

View changed files

📝 tools/port_map/classes-08.tsv (+5 -5)

📄 Description

Vanilla keeps a map's banner markers under MapBanner.getId()'s key, reads a saved world's DataPackConfig and enabled_features back with the level (LevelStorageSource.readDataConfig), renders a world-list row's status text from the level summary (LevelSummary.createInfo), refuses to play a world that is locked or was saved by another series (LevelSummary.isDisabled, reaching primaryActionActive and canEdit), and marks a world's version red or italic when BackupStatus.shouldBackup is on.

tools/port_map/classes-08.tsv said otherwise:

  • MapBanner.getId — "missing, key string of a banner marker". The marker is filed under Key::Banner(pos) (MapItemSavedData.toggleBanner files it, check_banners and the decoration rebuild read it back): crates/horizon-client/src/game/maps.rs:19 names MapBanner.getId and Key::Banner is its key, so it is an inline fold, not a missing method.
  • LevelStorageSource.readDataConfig — "the world's own enabled datapacks and features are not read back from level.dat". save::Level::read reads both (data_packs, enabled_features), and save.rs:353-356 hands them to datapack::enabled_ids, which layers the world's own packs over the bundle. Ported.
  • LevelSummary.createInfo — "unsure: row status text (locked, needs conversion) is not carried in WorldEntry". WorldEntry carries locked, incompatible, corrupted, file_fixing and downgrade, and title::world_info is the status line itself (its doc says LevelSummary.createInfo; locked, incompatible and corrupt rows come out red). Ported.
  • LevelSummary.isDisabled — "unsure: list_worlds drops folders whose level.dat does not read instead of showing them disabled". It does not drop them: WorldEntry::corrupted is a listed row (recover_world.warning), and WorldEntry::disabled is isDisabled (locked, or saved by another series), with can_play and can_edit built on it. Ported.
  • LevelSummary.backupStatus — pointed at title::list_worlds; the status is WorldEntry::should_backup (needs its files fixed, or comes from a newer version), which world_info colours the version with. Same verdict, right function.

Proven:

  • python3 tools/port_ledger.py map-check tools/port_map/classes-08.tsv → 154 rows, no problems.
  • grep -n 'LevelSummary.isDisabled' crates/horizon-client/src/title.rs → 219: /// \LevelSummary.isDisabled`.overfn disabled (self.locked || !self.compatible()), and vanilla's bytecode agrees: javaponLevelSummary.isDisabledisisLocked() || requiresManualConversion() || !isCompatible()`
  • grep -n 'LevelSummary.createInfo' crates/horizon-client/src/title.rs → 577:, 580:, 590: inside world_info, which is the row text (mode, commands, version, the red locked/incompatible/corrupt cases)
  • grep -n 'data_packs|enabled_features' crates/horizon-client/src/save.rs → 353: let enabled_features = Level::read(world), 356: let enabled = crate::datapack::enabled_ids(world, &packs, &enabled_features), 3635: pub data_packs: ...
  • grep -n 'MapBanner.getId' crates/horizon-client/src/game/maps.rs → 19:/// connection, the banner at a position (\MapBanner.getId`), whose key is Key::Banner([i32; 3])`
  • the rows I did not change still hold where they claim a loot function has no vanilla user: grep -rl "minecraft:set_banner_pattern" data (and set_contents, set_loot_table, modify_contents, set_attributes, copy_name, copy_custom_data, fill_player_head, slot) over the client jar's 1447 data/minecraft/loot_table files → no hits

Not proven:

  • I did not run the game: the world-list rows (a locked world's play button, a corrupt world's recovery row) and a map banner's marker were not checked on screen.
  • The rest of the file was not re-derived method by method; the verdicts I left alone were checked only for dangling paths, which map-check reports clean.

🔄 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/6848 **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:** `fix/ledger-classes08-level` --- ### 📝 Commits (1) - [`c6c858a`](https://github.com/horizon-rust/horizon/commit/c6c858aadb63004581d7ecc8614b5d57d9396768) port map: five classes-08 rows main already ports ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-08.tsv` (+5 -5) </details> ### 📄 Description Vanilla keeps a map's banner markers under `MapBanner.getId()`'s key, reads a saved world's `DataPackConfig` and `enabled_features` back with the level (`LevelStorageSource.readDataConfig`), renders a world-list row's status text from the level summary (`LevelSummary.createInfo`), refuses to play a world that is locked or was saved by another series (`LevelSummary.isDisabled`, reaching `primaryActionActive` and `canEdit`), and marks a world's version red or italic when `BackupStatus.shouldBackup` is on. `tools/port_map/classes-08.tsv` said otherwise: - `MapBanner.getId` — "missing, key string of a banner marker". The marker is filed under `Key::Banner(pos)` (`MapItemSavedData.toggleBanner` files it, `check_banners` and the decoration rebuild read it back): `crates/horizon-client/src/game/maps.rs:19` names `MapBanner.getId` and `Key::Banner` is its key, so it is an inline fold, not a missing method. - `LevelStorageSource.readDataConfig` — "the world's own enabled datapacks and features are not read back from level.dat". `save::Level::read` reads both (`data_packs`, `enabled_features`), and `save.rs:353-356` hands them to `datapack::enabled_ids`, which layers the world's own packs over the bundle. Ported. - `LevelSummary.createInfo` — "unsure: row status text (locked, needs conversion) is not carried in WorldEntry". `WorldEntry` carries `locked`, `incompatible`, `corrupted`, `file_fixing` and `downgrade`, and `title::world_info` is the status line itself (its doc says `LevelSummary.createInfo`; locked, incompatible and corrupt rows come out red). Ported. - `LevelSummary.isDisabled` — "unsure: list_worlds drops folders whose level.dat does not read instead of showing them disabled". It does not drop them: `WorldEntry::corrupted` is a listed row (`recover_world.warning`), and `WorldEntry::disabled` is `isDisabled` (locked, or saved by another series), with `can_play` and `can_edit` built on it. Ported. - `LevelSummary.backupStatus` — pointed at `title::list_worlds`; the status is `WorldEntry::should_backup` (needs its files fixed, or comes from a newer version), which `world_info` colours the version with. Same verdict, right function. **Proven:** - `python3 tools/port_ledger.py map-check tools/port_map/classes-08.tsv` → `154 rows, no problems.` - `grep -n 'LevelSummary.isDisabled' crates/horizon-client/src/title.rs` → `219: /// \`LevelSummary.isDisabled\`.` over `fn disabled` (`self.locked || !self.compatible()`), and vanilla's bytecode agrees: `javap` on `LevelSummary.isDisabled` is `isLocked() || requiresManualConversion() || !isCompatible()` - `grep -n 'LevelSummary.createInfo' crates/horizon-client/src/title.rs` → `577:`, `580:`, `590:` inside `world_info`, which is the row text (mode, commands, version, the red locked/incompatible/corrupt cases) - `grep -n 'data_packs|enabled_features' crates/horizon-client/src/save.rs` → `353: let enabled_features = Level::read(world)`, `356: let enabled = crate::datapack::enabled_ids(world, &packs, &enabled_features)`, `3635: pub data_packs: ...` - `grep -n 'MapBanner.getId' crates/horizon-client/src/game/maps.rs` → `19:/// connection, the banner at a position (\`MapBanner.getId\`)`, whose key is `Key::Banner([i32; 3])` - the rows I did not change still hold where they claim a loot function has no vanilla user: `grep -rl "minecraft:set_banner_pattern" data` (and `set_contents`, `set_loot_table`, `modify_contents`, `set_attributes`, `copy_name`, `copy_custom_data`, `fill_player_head`, `slot`) over the client jar's 1447 `data/minecraft/loot_table` files → no hits **Not proven:** - I did not run the game: the world-list rows (a locked world's play button, a corrupt world's recovery row) and a map banner's marker were not checked on screen. - The rest of the file was not re-derived method by method; the verdicts I left alone were checked only for dangling paths, which `map-check` reports clean. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:34:34 +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#7140
No description provided.