[PR #7427] [CLOSED] Clear stale rest-022 row: cellIndex's locate moved to storage.rs #7596

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7427
Author: @MSedgeMC
Created: 11/2/2026
Status: ❌ Closed

Base: main ← Head: chore/ledger2-rest-022


📝 Commits (1)

  • 8d8f9aa Port map: rest-022 rows the tree answers

📊 Changes

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

View changed files

📝 tools/port_map/rest-022.tsv (+1 -1)

📄 Description

tools/port_map/rest-022.tsv, one row:

  • SimpleBitStorage.cellIndex — cited crates/horizon-core/src/paletted.rs::locate, which no longer exists; map-check reported rest-022.tsv:141 SimpleBitStorage.cellIndex: no fn crates/horizon-core/src/paletted.rs::locate. locate now lives in crates/horizon-core/src/storage.rs (pub(crate) fn locate(bits: u8, i: usize) -> (usize, u32)), and paletted.rs imports it with use crate::storage::{locate, mask}. The row now cites crates/horizon-core/src/storage.rs::locate and describes it: the word and its bit offset of an entry, which read and write take.

The file's other missing rows were rechecked and stay: GsonHelper.encodesLongerThan (no JSON-length cap; the 1024-character book page limit in game/books.rs is a different limit), InclusiveRange.contains (no subrange test; spawner.rs::light_limit reads single light ranges), KeyframeTrack.validateKeyframes and KeyframeTrack.validatePeriod (neither patrol.rs::GameplayAttributes::load nor environment.rs::Environment::load_dimension checks keyframe order or ticks), PngInfo.validateBounds (no 16-bit buffer bound check), and the Mth.clampedMap / Mth.map unsure rows (no inverse-lerp helper in the tree).

map-check: python3 tools/port_ledger.py map-check tools/port_map/rest-022.tsv -> 149 rows, no problems.

Proven: python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/rest-022.tsv -> 149 rows, no problems.

Not proven: no in-game check; the row is a citation of an existing function.


🔄 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/7427 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `chore/ledger2-rest-022` --- ### 📝 Commits (1) - [`8d8f9aa`](https://github.com/horizon-rust/horizon/commit/8d8f9aaae359e0eb56e5432a11b8e838e930cf75) Port map: rest-022 rows the tree answers ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-022.tsv` (+1 -1) </details> ### 📄 Description `tools/port_map/rest-022.tsv`, one row: - `SimpleBitStorage.cellIndex` — cited `crates/horizon-core/src/paletted.rs::locate`, which no longer exists; `map-check` reported `rest-022.tsv:141 SimpleBitStorage.cellIndex: no fn crates/horizon-core/src/paletted.rs::locate`. `locate` now lives in `crates/horizon-core/src/storage.rs` (`pub(crate) fn locate(bits: u8, i: usize) -> (usize, u32)`), and `paletted.rs` imports it with `use crate::storage::{locate, mask}`. The row now cites `crates/horizon-core/src/storage.rs::locate` and describes it: the word and its bit offset of an entry, which `read` and `write` take. The file's other `missing` rows were rechecked and stay: `GsonHelper.encodesLongerThan` (no JSON-length cap; the 1024-character book page limit in `game/books.rs` is a different limit), `InclusiveRange.contains` (no subrange test; `spawner.rs::light_limit` reads single light ranges), `KeyframeTrack.validateKeyframes` and `KeyframeTrack.validatePeriod` (neither `patrol.rs::GameplayAttributes::load` nor `environment.rs::Environment::load_dimension` checks keyframe order or ticks), `PngInfo.validateBounds` (no 16-bit buffer bound check), and the `Mth.clampedMap` / `Mth.map` `unsure` rows (no inverse-lerp helper in the tree). `map-check`: `python3 tools/port_ledger.py map-check tools/port_map/rest-022.tsv` -> `149 rows, no problems.` **Proven:** `python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/rest-022.tsv` -> `149 rows, no problems.` **Not proven:** no in-game check; the row is a citation of an existing function. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:20:29 +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#7596
No description provided.