[PR #2097] [MERGED] Show the poem and credits on the first End exit in server-thread mode #4001

Closed
opened 2026-11-03 04:13:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/1507-server-end-credits


📝 Commits (2)

  • 1e6884c Show the poem and credits on a player's first End exit in server-thread mode
  • 3caf8f7 lan_e2e portals: close the credits on the host's first End exit

📊 Changes

5 files changed (+55 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_actions.rs (+11 -0)
📝 crates/horizon-client/src/game/server_travel.rs (+28 -0)
📝 crates/horizon-client/src/lan/guest.rs (+3 -0)
📝 crates/horizon-client/src/lan/playerdata.rs (+2 -0)
📝 tools/lan_e2e.py (+11 -1)

📄 Description

What and why

In server-thread mode the first step into an End exit portal sent the player straight back to the Overworld. The poem and credits never showed, and seenCredits was never set for the player.

The server's portal code (handle_server_portal) had no first-exit branch. It now follows vanilla:

  • On the first exit from the End, the server sends the WIN_GAME game event, marks the player as having seen the credits, and keeps the player where they are until the client finishes the poem.
  • When the client sends PERFORM_RESPAWN, the next server tick sends the player on the normal End exit trip to their respawn point.
  • seenCredits is now read from and written to the player's saved data, so later exits (and later sessions) skip the poem.

Fixes #1507.

Vanilla reference

  • EndPortalBlock.entityInside (first exit calls showEndCredits instead of setAsInsidePortal)
  • ServerPlayer.showEndCredits (wonGame, seenCredits, WIN_GAME event)
  • ServerGamePacketListenerImpl.handleClientCommand (PERFORM_RESPAWN after winning)
  • ClientPacketListener WIN_GAME handling (already implemented on the client)

Self-check

cargo check -p horizon-client passes.


🔄 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/2097 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/1507-server-end-credits` --- ### 📝 Commits (2) - [`1e6884c`](https://github.com/horizon-rust/horizon/commit/1e6884c591e704a9190e896dbf02d291058a3e2f) Show the poem and credits on a player's first End exit in server-thread mode - [`3caf8f7`](https://github.com/horizon-rust/horizon/commit/3caf8f70145953860b5a4d8d66f689aff13cc50e) lan_e2e portals: close the credits on the host's first End exit ### 📊 Changes **5 files changed** (+55 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+11 -0) 📝 `crates/horizon-client/src/game/server_travel.rs` (+28 -0) 📝 `crates/horizon-client/src/lan/guest.rs` (+3 -0) 📝 `crates/horizon-client/src/lan/playerdata.rs` (+2 -0) 📝 `tools/lan_e2e.py` (+11 -1) </details> ### 📄 Description ## What and why In server-thread mode the first step into an End exit portal sent the player straight back to the Overworld. The poem and credits never showed, and `seenCredits` was never set for the player. The server's portal code (`handle_server_portal`) had no first-exit branch. It now follows vanilla: - On the first exit from the End, the server sends the WIN_GAME game event, marks the player as having seen the credits, and keeps the player where they are until the client finishes the poem. - When the client sends PERFORM_RESPAWN, the next server tick sends the player on the normal End exit trip to their respawn point. - `seenCredits` is now read from and written to the player's saved data, so later exits (and later sessions) skip the poem. Fixes #1507. ## Vanilla reference - `EndPortalBlock.entityInside` (first exit calls `showEndCredits` instead of `setAsInsidePortal`) - `ServerPlayer.showEndCredits` (`wonGame`, `seenCredits`, WIN_GAME event) - `ServerGamePacketListenerImpl.handleClientCommand` (PERFORM_RESPAWN after winning) - `ClientPacketListener` WIN_GAME handling (already implemented on the client) ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:56 +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#4001
No description provided.