[PR #6967] [MERGED] Clear stale classes-06.tsv row main already implements #7237

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-classes-06


📝 Commits (3)

  • ce3419f port_map: FlatLayerInfo.heightLimited is the flat layer clamp
  • d0b6918 Merge remote-tracking branch 'upstream/main' into HEAD
  • 89dbf44 Merge main into #6967

📊 Changes

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

View changed files

📝 tools/port_map/classes-06.tsv (+1 -1)

📄 Description

One missing row in tools/port_map/classes-06.tsv names code the tree already has.

row was now cites
FlatLayerInfo.heightLimited missing — "no per-layer clamp to the max height; flat settings only cap the total at the build height" inline — crates/horizon-client/src/title/flat.rs::FlatSettings::from_tag

javap -p -c on FlatLayerInfo.heightLimited(int) shows it returns a copy of the layer at min(height, maxHeight) (the layer itself when it already fits). Horizon does that clamp as each layer is decoded rather than through a constructor:

  • FlatSettings::from_tag holds every layer's height to 0..Y_SIZE while it builds the list, Y_SIZE being DimensionType.Y_SIZE (4064), the most a flat generator takes — the same clamp heightLimited(Y_SIZE) makes, so the row is inline into that function;
  • FlatSettings::parse caps a layer again at the height left below Y_SIZE (Y_SIZE - total), which also keeps the sum inside the column.

python3 tools/port_ledger.py build --jar .../26.3/jars/server.jar && python3 tools/port_ledger.py map-check tools/port_map/classes-06.tsv → 188 rows, no problems.

Proven: 188 rows, no problems. — every class, method and file::fn the file names resolves against a fresh ledger build of the pinned 26.3 jar, including the row changed here.

Not proven: no in-game check. This PR changes a verdict row only; the clamp it points at was already shipped and no flat world was loaded in a running client for this PR.


🔄 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/6967 **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-classes-06` --- ### 📝 Commits (3) - [`ce3419f`](https://github.com/horizon-rust/horizon/commit/ce3419f211e1de5e4a467be0fc502429c10bc970) port_map: FlatLayerInfo.heightLimited is the flat layer clamp - [`d0b6918`](https://github.com/horizon-rust/horizon/commit/d0b6918f2abe9422f69d4d9a0c58d1aa57bb4f0d) Merge remote-tracking branch 'upstream/main' into HEAD - [`89dbf44`](https://github.com/horizon-rust/horizon/commit/89dbf44981d75d042f571bcf986d170c82ab919b) Merge main into #6967 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-06.tsv` (+1 -1) </details> ### 📄 Description One `missing` row in `tools/port_map/classes-06.tsv` names code the tree already has. | row | was | now cites | | --- | --- | --- | | `FlatLayerInfo.heightLimited` | `missing` — "no per-layer clamp to the max height; flat settings only cap the total at the build height" | `inline` — `crates/horizon-client/src/title/flat.rs::FlatSettings::from_tag` | `javap -p -c` on `FlatLayerInfo.heightLimited(int)` shows it returns a copy of the layer at `min(height, maxHeight)` (the layer itself when it already fits). Horizon does that clamp as each layer is decoded rather than through a constructor: - `FlatSettings::from_tag` holds every layer's `height` to `0..Y_SIZE` while it builds the list, `Y_SIZE` being `DimensionType.Y_SIZE` (4064), the most a flat generator takes — the same clamp `heightLimited(Y_SIZE)` makes, so the row is `inline` into that function; - `FlatSettings::parse` caps a layer again at the height left below `Y_SIZE` (`Y_SIZE - total`), which also keeps the sum inside the column. `python3 tools/port_ledger.py build --jar .../26.3/jars/server.jar && python3 tools/port_ledger.py map-check tools/port_map/classes-06.tsv` → `188 rows, no problems.` **Proven:** `188 rows, no problems.` — every class, method and `file::fn` the file names resolves against a fresh ledger build of the pinned 26.3 jar, including the row changed here. **Not proven:** no in-game check. This PR changes a verdict row only; the clamp it points at was already shipped and no flat world was loaded in a running client for this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:36:11 +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#7237
No description provided.