[PR #6961] [MERGED] Clear stale game2-018.tsv rows main already implements #7232

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game2-018.tsv


📝 Commits (3)

  • 2ed21a3 chore(port_map): clear stale game2-018.tsv rows main already implements
  • 0c27a29 Merge remote-tracking branch 'upstream/main' into HEAD
  • a88bd5c Merge main into #6961

📊 Changes

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

View changed files

📝 tools/port_map/game2-018.tsv (+6 -6)

📄 Description

tools/port_map/game2-018.tsv: six rows whose verdict still said missing while the tree implements them.

  • SpawnerBlockEntity.setEntityData -> port, crates/horizon-client/src/mobs/spawner.rs::Spawner::set_entity_data (use_spawn_egg_on_spawner passes the egg's entity data, which merge_compound merges into the spawner's next spawn data; the BlockUpdated event sets it changed).
  • StructureBlockEntity.unloadStructure -> inline, crates/horizon-client/src/game/structure_blocks.rs::Game::trigger_structure_block (the Corner arm drops the saved template, so the next use reads the file again).
  • MovingPistonBlock.getDrops -> port, crates/horizon-world/src/level/pistons.rs::dropped_state (the block the moving piston carries, None for vanilla's empty list when its block entity is gone; drop_resources calls it).
  • PistonMovingBlockEntity.loadAdditional -> port, crates/horizon-client/src/game/persist.rs::Game::moving_piston_from_nbt (a minecraft:piston entity over a moving-piston block: blockState, facing, progress, extending, source).
  • PistonMovingBlockEntity.saveAdditional -> port, crates/horizon-client/src/game/persist.rs::Game::moving_piston_to_nbt (written per moving-piston block in attach_save_data).
  • StateHolder.findNextInCollection -> port, crates/horizon-client/src/game/debug_stick.rs::relative_index (the next value in a property's list, wrapping to the first; the debug stick's cycle picks its value with it).

The other rows of the file were rechecked and stay as they are: TestInstanceBlockEntity.Data.withStatus/withError have no game test runner to change them, and MovingPistonBlock.destroy/useWithoutItem have no code (hooks.rs only rechecks PistonBase, and update.rs drops the moving-piston data without touching the base piston).

Validation:

python3 tools/port_ledger.py build --jar .../minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/game2-018.tsv
150 rows, no problems.

Proven: 150 rows, no problems.

Not proven: no in-game check; nothing was run in the client.


🔄 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/6961 **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-game2-018.tsv` --- ### 📝 Commits (3) - [`2ed21a3`](https://github.com/horizon-rust/horizon/commit/2ed21a3bec20e8005c58bb78b0322df47364a6ff) chore(port_map): clear stale game2-018.tsv rows main already implements - [`0c27a29`](https://github.com/horizon-rust/horizon/commit/0c27a294dc37ee7a254366fef329b1738862229c) Merge remote-tracking branch 'upstream/main' into HEAD - [`a88bd5c`](https://github.com/horizon-rust/horizon/commit/a88bd5c392d86d5c0f510b7ce35533dd6a6b8551) Merge main into #6961 ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-018.tsv` (+6 -6) </details> ### 📄 Description `tools/port_map/game2-018.tsv`: six rows whose verdict still said `missing` while the tree implements them. - `SpawnerBlockEntity.setEntityData` -> `port`, `crates/horizon-client/src/mobs/spawner.rs::Spawner::set_entity_data` (`use_spawn_egg_on_spawner` passes the egg's entity data, which `merge_compound` merges into the spawner's next spawn data; the `BlockUpdated` event sets it changed). - `StructureBlockEntity.unloadStructure` -> `inline`, `crates/horizon-client/src/game/structure_blocks.rs::Game::trigger_structure_block` (the `Corner` arm drops the saved template, so the next use reads the file again). - `MovingPistonBlock.getDrops` -> `port`, `crates/horizon-world/src/level/pistons.rs::dropped_state` (the block the moving piston carries, `None` for vanilla's empty list when its block entity is gone; `drop_resources` calls it). - `PistonMovingBlockEntity.loadAdditional` -> `port`, `crates/horizon-client/src/game/persist.rs::Game::moving_piston_from_nbt` (a `minecraft:piston` entity over a moving-piston block: `blockState`, `facing`, `progress`, `extending`, `source`). - `PistonMovingBlockEntity.saveAdditional` -> `port`, `crates/horizon-client/src/game/persist.rs::Game::moving_piston_to_nbt` (written per moving-piston block in `attach_save_data`). - `StateHolder.findNextInCollection` -> `port`, `crates/horizon-client/src/game/debug_stick.rs::relative_index` (the next value in a property's list, wrapping to the first; the debug stick's cycle picks its value with it). The other rows of the file were rechecked and stay as they are: `TestInstanceBlockEntity.Data.withStatus`/`withError` have no game test runner to change them, and `MovingPistonBlock.destroy`/`useWithoutItem` have no code (`hooks.rs` only rechecks `PistonBase`, and `update.rs` drops the moving-piston data without touching the base piston). Validation: python3 tools/port_ledger.py build --jar .../minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/game2-018.tsv 150 rows, no problems. **Proven:** `150 rows, no problems.` **Not proven:** no in-game check; nothing was run in the client. --- <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:04 +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#7232
No description provided.