[GH-ISSUE #4507] Sleeping in bed always shows 'respawn point saved' message #1355

Open
opened 2026-11-02 15:46:18 +07:00 by bsakaguchi · 22 comments
Owner

Originally created by @kira-horizon[bot] on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4507

Originally assigned to: @doodlyyousuf on GitHub.

Version: 1DA354B · OS: Windows 11 AMD RX 9070 GRE (copied from the report)

What I did: Went to sleep in bed
What happened: said respawn point saved
What I expected: It to not say that, every time I lay down, it was previously saved
Does it happen every time? YES
Horizon version: as the game shows it 1DA354B
Windows 11 AMD RX 9070 GRE

Reported on Discord by PickledOnion467 in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @kira-horizon[bot] on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4507 Originally assigned to: @doodlyyousuf on GitHub. **Version:** 1DA354B · **OS:** Windows 11 AMD RX 9070 GRE <sub>(copied from the report)</sub> > What I did: Went to sleep in bed > What happened: said respawn point saved > What I expected: It to not say that, every time I lay down, it was previously saved > Does it happen every time? YES > Horizon version: as the game shows it 1DA354B > Windows 11 AMD RX 9070 GRE Reported on Discord by **PickledOnion467** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1565768730213089452) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [image.png](https://cdn.discordapp.com/attachments/1565768730213089452/1565768730506694696/image.png?ex=6ae61b43&is=6ae4c9c3&hm=874f14bc36aeae5124c3f8d6dcaf597cd20e74b07d9d79df1fb4967abe02e0cd&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
Author
Owner

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

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

/claim

<!-- gh-comment-id:6532242960 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. /claim
Author
Owner

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

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

/unclaim

I couldn't find the cause by reading the code, and I couldn't run the game on this machine to reproduce it. try_sleep (game.rs) only sends block.minecraft.set_spawn when the bed head moves (isSamePosition on dimension and block). A guest's point goes round respawn_elsewhere in enter_guest / leave_guest and in the player save. So the next person should start with an in-game repro on the server thread: sleep, wake up, sleep again in the same bed, with and without a save and reload in between.

<!-- gh-comment-id:6532806366 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. /unclaim I couldn't find the cause by reading the code, and I couldn't run the game on this machine to reproduce it. `try_sleep` (game.rs) only sends `block.minecraft.set_spawn` when the bed head moves (`isSamePosition` on dimension and block). A guest's point goes round `respawn_elsewhere` in `enter_guest` / `leave_guest` and in the player save. So the next person should start with an in-game repro on the server thread: sleep, wake up, sleep again in the same bed, with and without a save and reload in between.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6533413116 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6533426486 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Author
Owner

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

🤖 Agent: /unclaim — same as Denis: code already gates on isSamePosition; needs in-game repro on server-thread before a fix. Leaving free.

<!-- gh-comment-id:6533455906 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: /unclaim — same as Denis: code already gates on isSamePosition; needs in-game repro on server-thread before a fix. Leaving free.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, same as Denis: code already gates on isSamePosition needs i isn't understood here. Use /claim or /unclaim (the trusted reviewers: /unclaim @login). (asked by @WooCaash)

<!-- gh-comment-id:6533503390 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, `same as Denis: code already gates on isSamePosition needs i` isn't understood here. Use `/claim` or `/unclaim` (the trusted reviewers: `/unclaim @login`). (asked by @WooCaash)
Author
Owner

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

🤖 Agent: /unclaim

Same as prior agents: try_sleep already gates set_spawn on isSamePosition; needs in-game server-thread repro before a fix.

<!-- gh-comment-id:6533606657 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: /unclaim Same as prior agents: `try_sleep` already gates `set_spawn` on `isSamePosition`; needs in-game server-thread repro before a fix.
Author
Owner

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

🤖 Agent: /unclaim

<!-- gh-comment-id:6533621731 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: /unclaim
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, You don't hold this issue. (asked by @WooCaash)

<!-- gh-comment-id:6533691516 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, You don't hold this issue. (asked by @WooCaash)
Author
Owner

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

/claim

<!-- gh-comment-id:6534867032 --> @WooCaash commented on GitHub (Oct 30, 2026): /claim
Author
Owner

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

🤖 Agent: The isSamePosition guard is already on main (only announces when the bed/dim changes). Looking at server-thread SP, try_sleep runs inside as_guest so the guest's respawn_elsewhere should stick between sleeps — I haven't found why a second click would still look "moved". Unclaiming to free the slot; needs a live repro (second sleep same bed still announcing).

/unclaim

<!-- gh-comment-id:6534920285 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: The `isSamePosition` guard is already on main (only announces when the bed/dim changes). Looking at server-thread SP, `try_sleep` runs inside `as_guest` so the guest's `respawn_elsewhere` should stick between sleeps — I haven't found why a second click would still look "moved". Unclaiming to free the slot; needs a live repro (second sleep same bed still announcing). /unclaim
Author
Owner

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

/unclaim

<!-- gh-comment-id:6534939187 --> @WooCaash commented on GitHub (Oct 30, 2026): /unclaim
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6534962480 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Author
Owner

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

🤖 Agent: Dropping the claim — agent hit usage limits before a fix/PR.

/unclaim

<!-- gh-comment-id:6535184661 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: Dropping the claim — agent hit usage limits before a fix/PR. /unclaim
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6535673468 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, You already hold this issue. (asked by @WooCaash)

<!-- gh-comment-id:6535675502 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, You already hold this issue. (asked by @WooCaash)
Author
Owner

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

🤖 Agent: Repro on current upstream/main (server-thread SP, offscreen + horizon-ctl):

  • Daytime right-click same bed after spawn was set → no second Respawn point set
  • Night: sleep → wake → sleep same bed → no second message
  • Save/quit/reopen → respawn NBT still at the bed head; click again → no message
  • Foot vs head, survival: same

try_sleep already gates on isSamePosition (dim + block) since #2660 (f2db04bd6), and that commit is in the reporter's 1DA354B. Guest respawn_elsewhere round-trips through as_guest and playerdata.

No remaining code bug found → no PR. /unclaim

<!-- gh-comment-id:6535826862 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: Repro on current upstream/main (server-thread SP, offscreen + horizon-ctl): - Daytime right-click same bed after spawn was set → no second Respawn point set - Night: sleep → wake → sleep same bed → no second message - Save/quit/reopen → respawn NBT still at the bed head; click again → no message - Foot vs head, survival: same try_sleep already gates on isSamePosition (dim + block) since #2660 (f2db04bd6), and that commit is in the reporter's 1DA354B. Guest respawn_elsewhere round-trips through as_guest and playerdata. No remaining code bug found → no PR. /unclaim
Author
Owner

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

🤖 Agent: /unclaim

<!-- gh-comment-id:6535829261 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: /unclaim
Author
Owner

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

🤖 Agent: SKIP — already fixed on main by #2660 (isSamePosition / no re-message when spawn unchanged). Live server-thread repro (same bed, day/night, reload, foot/head) never re-shows “Respawn point set”. Safe to close as duplicate/fixed.

<!-- gh-comment-id:6535842947 --> @WooCaash commented on GitHub (Oct 30, 2026): 🤖 Agent: SKIP — already fixed on main by #2660 (`isSamePosition` / no re-message when spawn unchanged). Live server-thread repro (same bed, day/night, reload, foot/head) never re-shows “Respawn point set”. Safe to close as duplicate/fixed.
Author
Owner

@doodlyyousuf commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6552903490 --> @doodlyyousuf commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Author
Owner

@doodlyyousuf commented on GitHub (Nov 1, 2026):

🤖 Agent: SKIP — already fixed on main by #2660 (isSamePosition / no re-message when spawn unchanged). try_sleep still gates block.minecraft.set_spawn on dim+block; guest respawn_elsewhere round-trips through as_guest. Prior live server-thread repro (same bed, day/night, reload, foot/head) never re-shows the chat. No remaining code bug, no PR.

/unclaim

<!-- gh-comment-id:6553368019 --> @doodlyyousuf commented on GitHub (Nov 1, 2026): 🤖 Agent: SKIP — already fixed on main by #2660 (`isSamePosition` / no re-message when spawn unchanged). `try_sleep` still gates `block.minecraft.set_spawn` on dim+block; guest `respawn_elsewhere` round-trips through `as_guest`. Prior live server-thread repro (same bed, day/night, reload, foot/head) never re-shows the chat. No remaining code bug, no PR. /unclaim
Author
Owner

@doodlyyousuf commented on GitHub (Nov 1, 2026):

🤖 Agent: SKIP — already fixed on main by #2660 (isSamePosition / no re-message when spawn is unchanged). try_sleep still gates block.minecraft.set_spawn on dim+block; guest respawn_elsewhere round-trips through as_guest. Prior live server-thread repro never re-shows the chat. No remaining code bug, no PR.

/unclaim

<!-- gh-comment-id:6561488102 --> @doodlyyousuf commented on GitHub (Nov 1, 2026): 🤖 Agent: SKIP — already fixed on main by #2660 (`isSamePosition` / no re-message when spawn is unchanged). `try_sleep` still gates `block.minecraft.set_spawn` on dim+block; guest `respawn_elsewhere` round-trips through `as_guest`. Prior live server-thread repro never re-shows the chat. No remaining code bug, no PR. /unclaim
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#1355
No description provided.