[PR #4161] [MERGED] Make lan_e2e levels' guest_end step match vanilla's End exit #5451

Closed
opened 2026-11-03 05:12:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4161
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: fix/lan-e2e-gateway-exact


📝 Commits (1)

  • 24bea85 Make lan_e2e levels' guest_end step match vanilla's End exit

📊 Changes

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

View changed files

📝 tools/lan_e2e.py (+11 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Fixes #4145. lan_e2e --check levels failed its guest_end step on main. Both causes were in the test, not the game:

  1. Gateway NBT key. The step placed end_gateway{exit_portal:[I;100,50,0],exact_teleport:1b}. Vanilla 26.3 reads and writes the flag as ExactTeleport (TheEndGatewayBlockEntity.loadAdditional / saveAdditional), so the gateway wasn't exact. It searched for a landing around (100, 50, 0) and left the guest at (95.5, 57, -4.5), which is correct for a non-exact gateway. No other file under tools/, tests/, mods/ or docs/ uses exact_teleport.
  2. Credits never closed. With the gateway fixed, the step got to the exit portal and stopped there. A player's first exit from the End rolls the credits (ServerPlayer.showEndCredits), and only closing them (WinScreen.onClose sends PERFORM_RESPAWN) takes the player home. The portals step already does this for the host; guest_end now does the same for the guest and asserts that the credits showed.

Tested

lan_e2e --check levels with main's binary (d6adbe1cb), server thread:

before after
guest_end FAIL: the gateway left the guest at (95.5, 57, -4.5) PASS: landed (100.5, 49, 0.5), gateway (100.5, 49, 0.5), home (-3.5, 65, 0.5)
the other 7 steps PASS PASS

Self-check

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at 25f9cd3a9, 6 min 6 s)

Check Result
Scope ✅ 2 files, +12 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 480 passed (1 min 3 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
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 ✅ 4 affected, 3 passed (5 min 3 s)
Label skip-release

(Scope counts a stray untracked file a game run left in the worktree; the PR changes only tools/lan_e2e.py.)

Needs Ludovic: nothing.

🤖 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/4161 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lan-e2e-gateway-exact` --- ### 📝 Commits (1) - [`24bea85`](https://github.com/horizon-rust/horizon/commit/24bea8540da396285492946e590c868f87c42a73) Make lan_e2e levels' guest_end step match vanilla's End exit ### 📊 Changes **1 file changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/lan_e2e.py` (+11 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #4145. `lan_e2e --check levels` failed its `guest_end` step on main. Both causes were in the test, not the game: 1. **Gateway NBT key.** The step placed `end_gateway{exit_portal:[I;100,50,0],exact_teleport:1b}`. Vanilla 26.3 reads and writes the flag as `ExactTeleport` (`TheEndGatewayBlockEntity.loadAdditional` / `saveAdditional`), so the gateway wasn't exact. It searched for a landing around (100, 50, 0) and left the guest at (95.5, 57, -4.5), which is correct for a non-exact gateway. No other file under `tools/`, `tests/`, `mods/` or `docs/` uses `exact_teleport`. 2. **Credits never closed.** With the gateway fixed, the step got to the exit portal and stopped there. A player's first exit from the End rolls the credits (`ServerPlayer.showEndCredits`), and only closing them (`WinScreen.onClose` sends PERFORM_RESPAWN) takes the player home. The `portals` step already does this for the host; `guest_end` now does the same for the guest and asserts that the credits showed. ## Tested `lan_e2e --check levels` with main's binary (d6adbe1cb), server thread: | | before | after | |---|---|---| | `guest_end` | FAIL: the gateway left the guest at (95.5, 57, -4.5) | PASS: landed (100.5, 49, 0.5), gateway (100.5, 49, 0.5), home (-3.5, 65, 0.5) | | the other 7 steps | PASS | PASS | ## Self-check **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at 25f9cd3a9, 6 min 6 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +12 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 480 passed (1 min 3 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | 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 | ✅ 4 affected, 3 passed (5 min 3 s) | | Label | `skip-release` | (Scope counts a stray untracked file a game run left in the worktree; the PR changes only `tools/lan_e2e.py`.) Needs Ludovic: nothing. 🤖 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 05:12:41 +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#5451
No description provided.