[PR #6867] [MERGED] Clear six game-004 ledger rows: four main has, two class rows and a dangling bucket citation #7159

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game-004


📝 Commits (1)

  • 631afe6 Clear six game-004 ledger rows: four main has, two class rows and a dangling bucket citation

📊 Changes

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

View changed files

📝 tools/port_map/game-004.tsv (+6 -6)

📄 Description

Data only: tools/port_map/game-004.tsv.

Three rows still saying missing

  • ConversionTracker.readAdditionalSaveData -> entity_nbt.rs::mob_from_nbt:
    the affliction time (0 when absent) and a conversion started from the saved
    time, -1 stopping one. mob_to_nbt writes the same field per species
    (DrownedConversionTime / StrayConversionTime with InWaterTime), and
    mobs_keep_their_variant_puff_state_carried_block_and_conversion_times
    covers the round trip.
  • DropChances.filterDefaultValues -> entity_nbt.rs::mob_to_nbt, which
    writes only the chances that differ from the default 0.085 and drops the
    compound when every slot is default.
  • DropChances.toEnumMap -> entity_nbt.rs::mob_from_nbt, which reads the
    saved drop_chances compound back by slot name.

Three broken rows

map-check reported three more rows in the same file, all fixed here:

  • Bucketable.loadDefaultDataFromBucketTag cited
    entity_nbt.rs::load_bucket_data, gone: the bucket's entity data is read
    back by apply_item_components (NoAI, Silent, NoGravity, Glowing,
    Invulnerable, PersistenceRequired, Health).
  • Display.BlockDisplay and Display.ItemDisplay are class rows (the
    lower-case rule makes BlockDisplay a class name, not a method), and a class
    row takes home, missing or skip:<reason>, not a port to a function.
    They are home in game/text_displays.rs, the file whose
    block_item_display_geometry draws both.

Proven

python3 tools/port_ledger.py build --jar .../26.3/jars/server.jar then
map-check tools/port_map/game-004.tsv: 100 rows, no problems (before:
three "no fn"/class-verdict rows). No code changed; each claim is from reading
the named function.

Not proven

No behaviour was run or changed: these are ledger verdicts, and no in-game
check applies.


🔄 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/6867 **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-game-004` --- ### 📝 Commits (1) - [`631afe6`](https://github.com/horizon-rust/horizon/commit/631afe689c5cc8f5669d93d27f05d235f2d21eea) Clear six game-004 ledger rows: four main has, two class rows and a dangling bucket citation ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-004.tsv` (+6 -6) </details> ### 📄 Description Data only: `tools/port_map/game-004.tsv`. ## Three rows still saying `missing` - `ConversionTracker.readAdditionalSaveData` -> `entity_nbt.rs::mob_from_nbt`: the affliction time (0 when absent) and a conversion started from the saved time, -1 stopping one. `mob_to_nbt` writes the same field per species (`DrownedConversionTime` / `StrayConversionTime` with `InWaterTime`), and `mobs_keep_their_variant_puff_state_carried_block_and_conversion_times` covers the round trip. - `DropChances.filterDefaultValues` -> `entity_nbt.rs::mob_to_nbt`, which writes only the chances that differ from the default 0.085 and drops the compound when every slot is default. - `DropChances.toEnumMap` -> `entity_nbt.rs::mob_from_nbt`, which reads the saved `drop_chances` compound back by slot name. ## Three broken rows `map-check` reported three more rows in the same file, all fixed here: - `Bucketable.loadDefaultDataFromBucketTag` cited `entity_nbt.rs::load_bucket_data`, gone: the bucket's entity data is read back by `apply_item_components` (NoAI, Silent, NoGravity, Glowing, Invulnerable, PersistenceRequired, Health). - `Display.BlockDisplay` and `Display.ItemDisplay` are class rows (the lower-case rule makes `BlockDisplay` a class name, not a method), and a class row takes `home`, `missing` or `skip:<reason>`, not a `port` to a function. They are `home` in `game/text_displays.rs`, the file whose `block_item_display_geometry` draws both. ## Proven `python3 tools/port_ledger.py build --jar .../26.3/jars/server.jar` then `map-check tools/port_map/game-004.tsv`: **100 rows, no problems** (before: three "no fn"/class-verdict rows). No code changed; each claim is from reading the named function. ## Not proven No behaviour was run or changed: these are ledger verdicts, and no in-game check applies. --- <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:00 +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#7159
No description provided.