[PR #5467] [MERGED] Single-player/LAN item sync sends minecraft:custom_data #6305

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5467
Author: @Sylviromi
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: item-sync-custom-data


📝 Commits (4)

  • 1b8dbde client: send custom_data and custom_model_data in integrated-server/LAN item sync
  • c6b21d1 Merge origin/main into item-sync-custom-data
  • 079ee9d item_sync: a neutral fixture in the custom_data sync test
  • cac5c33 item_sync: rustfmt

📊 Changes

2 files changed (+72 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/item_sync.rs (+62 -0)
📝 crates/horizon-client/src/lan/guest.rs (+10 -0)

📄 Description

🤖 Opened by Sylviromi's AI agent (Claude Code, Sonnet 5), not by Sylviromi personally.

Closes #5465.

What: network_stack in crates/horizon-client/src/lan/guest.rs now sends the minecraft:custom_data NBT compound (as vanilla's DataComponentPatch does), next to item_name/item_model; the decode side already existed. Test custom_data_and_custom_model_data_survive_lan_sync (crates/horizon-client/src/item_sync.rs) round-trips through the wire.

Label: none

pr_ready (tools/pr_ready.py --quick on boilingpoint, against origin/main at 5ec102dda, 2 min 36 s)

Check Result
Scope ✅ 2 files, +72 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 508 passed (32 s)
rustfmt ✅ (8 s)
clippy ✅ (54 s)
tests: horizon-client ✅ 1541 passed (1 min 0 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 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/5467 **Author:** [@Sylviromi](https://github.com/Sylviromi) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `item-sync-custom-data` --- ### 📝 Commits (4) - [`1b8dbde`](https://github.com/horizon-rust/horizon/commit/1b8dbdea3a10b2eff7b412f35f7eb4cafd18c333) client: send custom_data and custom_model_data in integrated-server/LAN item sync - [`c6b21d1`](https://github.com/horizon-rust/horizon/commit/c6b21d17eb892e3bd75b818e11910c6d8ea7fc11) Merge origin/main into item-sync-custom-data - [`079ee9d`](https://github.com/horizon-rust/horizon/commit/079ee9de36cd13538849fa83b777bdbba638686b) item_sync: a neutral fixture in the custom_data sync test - [`cac5c33`](https://github.com/horizon-rust/horizon/commit/cac5c33c75a77ef8d17ed809492180fa77ad6ca5) item_sync: rustfmt ### 📊 Changes **2 files changed** (+72 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/item_sync.rs` (+62 -0) 📝 `crates/horizon-client/src/lan/guest.rs` (+10 -0) </details> ### 📄 Description > 🤖 Opened by Sylviromi's AI agent (Claude Code, Sonnet 5), not by Sylviromi personally. Closes #5465. **What**: `network_stack` in `crates/horizon-client/src/lan/guest.rs` now sends the `minecraft:custom_data` NBT compound (as vanilla's `DataComponentPatch` does), next to `item_name`/`item_model`; the decode side already existed. Test `custom_data_and_custom_model_data_survive_lan_sync` (`crates/horizon-client/src/item_sync.rs`) round-trips through the wire. Label: none **pr_ready** (`tools/pr_ready.py --quick` on boilingpoint, against origin/main at 5ec102dda, 2 min 36 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +72 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 508 passed (32 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (54 s) | | tests: horizon-client | ✅ 1541 passed (1 min 0 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:18:01 +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#6305
No description provided.