[GH-ISSUE #4145] [server-thread] lan_e2e levels guest_end: the End gateway step sets exact_teleport instead of vanilla's ExactTeleport #1218

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

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

Originally assigned to: @DUzzL on GitHub.

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

python3 tools/lan_e2e.py --check levels fails its guest_end step on main (a3809490f) and on #4136:

[lan] levels guest_end: FAIL AssertionError('the gateway left the guest at [95.5, 57.0, -4.5]')

The step expects an End gateway far out (702, 80, 0), with an exact exit at the End spawn, to take the LAN guest to about (100.5, 49–50, 0.5).

Cause: the check, not the game. The step places the gateway with {exit_portal:[I;100,50,0],exact_teleport:1b}. Vanilla 26.3 reads and writes the flag as ExactTeleport (TheEndGatewayBlockEntity.loadAdditional: input.getBooleanOr("ExactTeleport", false); saveAdditional the same). So the gateway is not exact. TheEndGatewayBlockEntity.getPortalPosition then uses findExitPosition around (100, 50, 0), and Horizon puts the guest on (95.5, 57, -4.5). That is the non-exact path doing its job. exact_teleport appears nowhere else in tools/, tests/ or mods/.

Fix: use ExactTeleport:1b in the check (PR to follow).

Originally created by @ludovic111 on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4145 Originally assigned to: @DUzzL on GitHub. > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. `python3 tools/lan_e2e.py --check levels` fails its `guest_end` step on main (a3809490f) and on #4136: ``` [lan] levels guest_end: FAIL AssertionError('the gateway left the guest at [95.5, 57.0, -4.5]') ``` The step expects an End gateway far out (702, 80, 0), with an exact exit at the End spawn, to take the LAN guest to about (100.5, 49–50, 0.5). **Cause: the check, not the game.** The step places the gateway with `{exit_portal:[I;100,50,0],exact_teleport:1b}`. Vanilla 26.3 reads and writes the flag as `ExactTeleport` (`TheEndGatewayBlockEntity.loadAdditional`: `input.getBooleanOr("ExactTeleport", false)`; `saveAdditional` the same). So the gateway is not exact. `TheEndGatewayBlockEntity.getPortalPosition` then uses `findExitPosition` around (100, 50, 0), and Horizon puts the guest on (95.5, 57, -4.5). That is the non-exact path doing its job. `exact_teleport` appears nowhere else in tools/, tests/ or mods/. Fix: use `ExactTeleport:1b` in the check (PR to follow).
bsakaguchi 2026-11-02 15:45:10 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

/claim

🤖 Agent: claiming this; fix is the ExactTeleport key in tools/lan_e2e.py.

<!-- gh-comment-id:6513083498 --> @DUzzL commented on GitHub (Oct 30, 2026): /claim 🤖 Agent: claiming this; fix is the ExactTeleport key in tools/lan_e2e.py.
Author
Owner

@ludovic111 commented on GitHub (Oct 30, 2026):

🤖 Agent: the cause is in the test: the gateway's NBT key (ExactTeleport, not exact_teleport), then the End credits that the step never closed. Fixed in #4161; lan_e2e --check levels passes with it on main's binary.

<!-- gh-comment-id:6513702618 --> @ludovic111 commented on GitHub (Oct 30, 2026): 🤖 Agent: the cause is in the test: the gateway's NBT key (`ExactTeleport`, not `exact_teleport`), then the End credits that the step never closed. Fixed in #4161; `lan_e2e --check levels` passes with it on main's binary.
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#1218
No description provided.