[PR #675] [MERGED] Use the configured respawn point after saving #2721

Closed
opened 2026-11-02 15:58:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/respawn-after-save


📝 Commits (1)

  • e87e5f0 Discard saved login position when respawning after death

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/screens.rs (+2 -0)

📄 Description

Saving updates the player's login position in Level.position. The local death screen then feeds that saved location back into initial player placement, overriding the configured respawn point. Discard the login position when requesting a local respawn so the normal spawn-point/anchor paths select the destination.

Fixes #622.

Validation: reproduced through the native client's existing controls in an isolated disposable world. With spawn at (4.5, 71, 4.5), saving at (24.5, 71, 4.5), dying and clicking Respawn returned to the saved location before the fix. The fixed client returns to the configured spawn. Fast client build, client all-target Clippy with warnings denied, workspace formatting, whitespace and public-tree checks pass.

The stale-save reproduction does not require lighting a portal. The report's complete bed → light portal → die sequence, cross-dimension anchor fallback and multiplayer still need manual testing.


🔄 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/675 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/respawn-after-save` --- ### 📝 Commits (1) - [`e87e5f0`](https://github.com/horizon-rust/horizon/commit/e87e5f0cd2dfd85ff49e2fe7065fc11987ba9a65) Discard saved login position when respawning after death ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/screens.rs` (+2 -0) </details> ### 📄 Description Saving updates the player's login position in `Level.position`. The local death screen then feeds that saved location back into initial player placement, overriding the configured respawn point. Discard the login position when requesting a local respawn so the normal spawn-point/anchor paths select the destination. Fixes #622. Validation: reproduced through the native client's existing controls in an isolated disposable world. With spawn at `(4.5, 71, 4.5)`, saving at `(24.5, 71, 4.5)`, dying and clicking Respawn returned to the saved location before the fix. The fixed client returns to the configured spawn. Fast client build, client all-target Clippy with warnings denied, workspace formatting, whitespace and public-tree checks pass. The stale-save reproduction does not require lighting a portal. The report's complete bed → light portal → die sequence, cross-dimension anchor fallback and multiplayer still need manual testing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:58:33 +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#2721
No description provided.