[GH-ISSUE #4429] End gateway exits are stored twice: in the block entity and in a JSON side file #1324

Closed
opened 2026-11-02 15:46:03 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @oskal675-design on GitHub.

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

Vanilla keeps an End gateway's exit only in its block entity (TheEndGatewayBlockEntity.saveAdditional / loadAdditional). crates/horizon-client/src/game/end.rs also stores exits in a separate JSON side file. Two stores need their own migration and cleanup, and they can disagree after a gateway is removed. Make the block entity data the only source of truth, and keep a one-time migration for existing side files if one is needed.

🤖 Generated with Dyna

Originally created by @arismoko on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4429 Originally assigned to: @oskal675-design on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. Vanilla keeps an End gateway's exit only in its block entity (`TheEndGatewayBlockEntity.saveAdditional` / `loadAdditional`). `crates/horizon-client/src/game/end.rs` also stores exits in a separate JSON side file. Two stores need their own migration and cleanup, and they can disagree after a gateway is removed. Make the block entity data the only source of truth, and keep a one-time migration for existing side files if one is needed. 🤖 Generated with Dyna
Author
Owner

@oskal675-design commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

The fix is implemented and locally verified: legacy JSON migrates into chunk block-entity NBT before chunk loading, existing NBT wins, and the JSON is removed only after successful writes. The source chunk stays loaded while a new exit is generated.

Verified with the real game (legacy-world migration, teleport, gateway replacement, new exit generation and restart), migration/error-path tests, 1,341 Rust tests, 495 Python tests, clippy, and the vanilla client/server End gateway parity harness. Opening the PR next.

<!-- gh-comment-id:6543714946 --> @oskal675-design commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim The fix is implemented and locally verified: legacy JSON migrates into chunk block-entity NBT before chunk loading, existing NBT wins, and the JSON is removed only after successful writes. The source chunk stays loaded while a new exit is generated. Verified with the real game (legacy-world migration, teleport, gateway replacement, new exit generation and restart), migration/error-path tests, 1,341 Rust tests, 495 Python tests, clippy, and the vanilla client/server End gateway parity harness. Opening the PR next.
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#1324
No description provided.