[PR #7291] [MERGED] Port map: a rejected class row and the feature-flag summary read #7467

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

📋 Pull Request Information

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

Base: main ← Head: chore/vol-a-classes-08


📝 Commits (2)

  • c4f6821 port_map: ExperimentalRedstoneWireEvaluator is a home row
  • 6cd307a port_map: parseFeatureFlagsFromSummary is the summary read

📊 Changes

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

View changed files

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

📄 Description

Two rows in tools/port_map/classes-08.tsv: one the ledger was rejecting
outright, one a missing verdict the tree answers.

row before after
ExperimentalRedstoneWireEvaluator port on a class row (rejected: "a class row takes skip:, missing or home") home crates/horizon-world/src/level/redstone/experimental.rs
LevelStorageSource.parseFeatureFlagsFromSummary missing crates/horizon-client/src/save.rs::Level::read_summary

Citations checked in the tree

  • crates/horizon-world/src/level/redstone/experimental.rs documents itself as
    ExperimentalRedstoneWireEvaluator and holds Evaluator with the two queues
    (off, on) and the wires found with their orientation — the class-homed
    half of Sim::experimental_wire_update, which is what the row pointed at
    before the verdict made it unreadable.
  • Level::read_summary is LevelStorageSource.readLevelSummary's read of
    level.dat, and read_root — shared with read — unpacks
    WorldDataConfiguration's enabled_features (save.rs:3759-3762), omitted
    when the flags are vanilla's default, which is what
    parseFeatureFlagsFromSummary does. What is still missing, and now written as
    the row's gap, is the world list's experimental marker.

Map check

python3 tools/port_ledger.py map-check tools/port_map/classes-08.tsv
154 rows, no problems.

Before the change the same command reported:

classes-08.tsv:1 ExperimentalRedstoneWireEvaluator: a class row takes skip:<reason>, missing or home

Proven: the file the class row points at exists and is the evaluator's home;
read_summary reads the flags with the summary; the map-check passes on the
file.

Not proven: no world was listed in game, so the summary read is read from the
code, not from a world list. ContainerComponentManipulator and the loot
function rows around SetCustomDataFunction / SetLoreFunction stay as they
are: only /item modify runs those, and no loot table uses them.


🔄 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/7291 **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-classes-08` --- ### 📝 Commits (2) - [`c4f6821`](https://github.com/horizon-rust/horizon/commit/c4f68215dd53ae7240d7bc2be077dd16689cabd4) port_map: ExperimentalRedstoneWireEvaluator is a home row - [`6cd307a`](https://github.com/horizon-rust/horizon/commit/6cd307abf8fad989f7b87550fe8c64aa0719e379) port_map: parseFeatureFlagsFromSummary is the summary read ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-08.tsv` (+2 -2) </details> ### 📄 Description Two rows in `tools/port_map/classes-08.tsv`: one the ledger was rejecting outright, one a missing verdict the tree answers. | row | before | after | | --- | --- | --- | | `ExperimentalRedstoneWireEvaluator` | `port` on a class row (rejected: "a class row takes skip:<reason>, missing or home") | `home crates/horizon-world/src/level/redstone/experimental.rs` | | `LevelStorageSource.parseFeatureFlagsFromSummary` | missing | `crates/horizon-client/src/save.rs::Level::read_summary` | **Citations checked in the tree** - `crates/horizon-world/src/level/redstone/experimental.rs` documents itself as `ExperimentalRedstoneWireEvaluator` and holds `Evaluator` with the two queues (`off`, `on`) and the wires found with their orientation — the class-homed half of `Sim::experimental_wire_update`, which is what the row pointed at before the verdict made it unreadable. - `Level::read_summary` is `LevelStorageSource.readLevelSummary`'s read of level.dat, and `read_root` — shared with `read` — unpacks `WorldDataConfiguration`'s `enabled_features` (`save.rs:3759-3762`), omitted when the flags are vanilla's default, which is what `parseFeatureFlagsFromSummary` does. What is still missing, and now written as the row's gap, is the world list's experimental marker. **Map check** ``` python3 tools/port_ledger.py map-check tools/port_map/classes-08.tsv 154 rows, no problems. ``` Before the change the same command reported: ``` classes-08.tsv:1 ExperimentalRedstoneWireEvaluator: a class row takes skip:<reason>, missing or home ``` **Proven:** the file the class row points at exists and is the evaluator's home; `read_summary` reads the flags with the summary; the map-check passes on the file. **Not proven:** no world was listed in game, so the summary read is read from the code, not from a world list. `ContainerComponentManipulator` and the loot function rows around `SetCustomDataFunction` / `SetLoreFunction` stay as they are: only `/item modify` runs those, and no loot table uses them. --- <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: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#7467
No description provided.