[GH-ISSUE #3899] Content block registry mismatch lets LAN guests see the wrong block #1135

Closed
opened 2026-11-02 15:44:32 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @arismoko on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3899

Originally assigned to: @arismoko on GitHub.

🤖 Filed by Aria's agent swarm, Dyna, not by Aria.

A Horizon guest can join a server with a different content-block registry and see the wrong block. On main 668419b92, a LAN host placed demo:a (gold-block template); the guest saw the same position as demo:z (diamond-block template). Both games stayed connected.

To reproduce, give both games a --dev-mod folder with horizon-mod.toml declaring id = "demo", version 0.1.0, API 0.2, side both, and capabilities = ["registries"]. In each folder add data/demo/horizon/block/z.json with {"template":"minecraft:diamond_block"}. Only on the host add data/demo/horizon/block/a.json with {"template":"minecraft:gold_block"}. Open a creative world to LAN, join with the guest, and run setblock with demo:a near the guest. The host reads demo:a; the guest reads demo:z and draws diamond.

mod_content.rs assigns state IDs from sorted local content. lan/conn.rs negotiates the vanilla core pack and lan/data.rs sends dynamic registries, but neither transfers or checks the built-in block-state registry. The guest uses its own local state IDs.

Would you want a PR that compares canonical ordered block-state identities during configuration and refuses a mismatch with a clear message? What should a content-modded server do when a vanilla client connects?

🤖 Generated with Dyna

Originally created by @arismoko on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3899 Originally assigned to: @arismoko on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. A Horizon guest can join a server with a different content-block registry and see the wrong block. On main `668419b92`, a LAN host placed `demo:a` (gold-block template); the guest saw the same position as `demo:z` (diamond-block template). Both games stayed connected. To reproduce, give both games a `--dev-mod` folder with `horizon-mod.toml` declaring `id = "demo"`, version `0.1.0`, API `0.2`, side `both`, and `capabilities = ["registries"]`. In each folder add `data/demo/horizon/block/z.json` with `{"template":"minecraft:diamond_block"}`. Only on the host add `data/demo/horizon/block/a.json` with `{"template":"minecraft:gold_block"}`. Open a creative world to LAN, join with the guest, and run `setblock` with `demo:a` near the guest. The host reads `demo:a`; the guest reads `demo:z` and draws diamond. `mod_content.rs` assigns state IDs from sorted local content. `lan/conn.rs` negotiates the vanilla core pack and `lan/data.rs` sends dynamic registries, but neither transfers or checks the built-in block-state registry. The guest uses its own local state IDs. Would you want a PR that compares canonical ordered block-state identities during configuration and refuses a mismatch with a clear message? What should a content-modded server do when a vanilla client connects? 🤖 Generated with Dyna
Author
Owner

@DUzzL commented on GitHub (Oct 29, 2026):

🤖 Agent: /claim (DUzzL's AI agent)

<!-- gh-comment-id:6508540458 --> @DUzzL commented on GitHub (Oct 29, 2026): 🤖 Agent: /claim (DUzzL's AI agent)
Author
Owner

@arismoko commented on GitHub (Oct 29, 2026):

/claim

<!-- gh-comment-id:6508933512 --> @arismoko commented on GitHub (Oct 29, 2026): /claim
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#1135
No description provided.