[PR #7017] [MERGED] Port map: the three jigsaw and test block handlers exist #7273

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

📋 Pull Request Information

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

Base: main ← Head: chore/port-map-rest-018


📝 Commits (1)

  • 018b389 Port map: the three jigsaw and test block handlers exist

📊 Changes

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

View changed files

📝 tools/port_map/rest-018.tsv (+3 -3)

📄 Description

Three rows here said test and jigsaw block edits do not save because SET_TEST_BLOCK, SET_JIGSAW_BLOCK and JIGSAW_GENERATE have no handler, but all three are implemented for the LAN host and each refuses anything but a creative player with game master commands, as ServerGamePacketListenerImpl does before calling the block:

  • handleSetTestBlock -> crates/horizon-client/src/game/test_blocks.rs::Game::lan_set_test_block (the block's mode and message are written, as its own use would write them).
  • handleSetJigsawBlock -> crates/horizon-client/src/game/jigsaw_blocks.rs::Game::lan_set_jigsaw_block (the six fields go into the block entity, then its data reaches the guests).
  • handleJigsawGenerate -> crates/horizon-client/src/game/jigsaw_blocks.rs::Game::lan_jigsaw_generate (the piece structure is generated around the block).

The rows this file still marks missing were re-checked and have no handler anywhere: handleRecipeBookSeenRecipePacket (ServerRecipeBook::remove_highlight exists but nothing calls it from a packet), handleSeenAdvancements, forceSendPlayerSupportBlocks, and the two PrepareSpawnTask rows.

Proven: each named function was read in the tree (impl Game in test_blocks.rs and jigsaw_blocks.rs) - that is the existence half of map-check.
Not proven: python3 tools/port_ledger.py map-check tools/port_map/rest-018.tsv has not been run: the build VM that holds the last build index is cooling down and comes back at 2026-11-02T10:55:20Z. It will be run and its result reported as a comment; no behaviour changed, so nothing was run in the game.


🔄 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/7017 **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/port-map-rest-018` --- ### 📝 Commits (1) - [`018b389`](https://github.com/horizon-rust/horizon/commit/018b3892322b45204b4d0f7af313783ef13c2c76) Port map: the three jigsaw and test block handlers exist ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-018.tsv` (+3 -3) </details> ### 📄 Description Three rows here said test and jigsaw block edits do not save because `SET_TEST_BLOCK`, `SET_JIGSAW_BLOCK` and `JIGSAW_GENERATE` have no handler, but all three are implemented for the LAN host and each refuses anything but a creative player with game master commands, as `ServerGamePacketListenerImpl` does before calling the block: - `handleSetTestBlock` -> `crates/horizon-client/src/game/test_blocks.rs::Game::lan_set_test_block` (the block's mode and message are written, as its own use would write them). - `handleSetJigsawBlock` -> `crates/horizon-client/src/game/jigsaw_blocks.rs::Game::lan_set_jigsaw_block` (the six fields go into the block entity, then its data reaches the guests). - `handleJigsawGenerate` -> `crates/horizon-client/src/game/jigsaw_blocks.rs::Game::lan_jigsaw_generate` (the piece structure is generated around the block). The rows this file still marks `missing` were re-checked and have no handler anywhere: `handleRecipeBookSeenRecipePacket` (`ServerRecipeBook::remove_highlight` exists but nothing calls it from a packet), `handleSeenAdvancements`, `forceSendPlayerSupportBlocks`, and the two `PrepareSpawnTask` rows. **Proven:** each named function was read in the tree (`impl Game` in `test_blocks.rs` and `jigsaw_blocks.rs`) - that is the existence half of `map-check`. **Not proven:** `python3 tools/port_ledger.py map-check tools/port_map/rest-018.tsv` has not been run: the build VM that holds the last build index is cooling down and comes back at 2026-11-02T10:55:20Z. It will be run and its result reported as a comment; no behaviour changed, so nothing was run in the game. --- <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:52 +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#7273
No description provided.