[PR #6192] [MERGED] Player data: a failed save is logged instead of dropped #6711

Closed
opened 2026-11-03 06:25:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6192
Author: @Domanffe
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/playerdata-save-errors-2


📝 Commits (1)

  • 152617e Player data: a failed save is logged instead of dropped

📊 Changes

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

View changed files

📝 crates/horizon-client/src/lan/playerdata.rs (+6 -2)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

save_owner and save in lan/playerdata.rs dropped the result of the
player's write with let _ =. A world on a full disk, or a players/data
file another process holds (a sync client, a scanner), keeps running and nothing
in latest.log says the player's inventory and position were not saved. The rest
of the crate reports the same class of failure with log::warn! (lan/mod.rs,
lan/recipes.rs), so these two follow it.

No behaviour change: the chunks and level.dat still save as before, and a
failed player write still leaves the old file in place. The failure is now
visible with the file and the error.

What I did not observe: the failure path in a running game, which needs a held
file or a full disk during a world save. The change only reads two Results
that were ignored.

The pr_ready block follows as a comment.


🔄 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/6192 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/playerdata-save-errors-2` --- ### 📝 Commits (1) - [`152617e`](https://github.com/horizon-rust/horizon/commit/152617ece70af3670b46b2345e4683fd4defaf65) Player data: a failed save is logged instead of dropped ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/playerdata.rs` (+6 -2) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. `save_owner` and `save` in `lan/playerdata.rs` dropped the result of the player's write with `let _ =`. A world on a full disk, or a `players/data` file another process holds (a sync client, a scanner), keeps running and nothing in `latest.log` says the player's inventory and position were not saved. The rest of the crate reports the same class of failure with `log::warn!` (`lan/mod.rs`, `lan/recipes.rs`), so these two follow it. No behaviour change: the chunks and `level.dat` still save as before, and a failed player write still leaves the old file in place. The failure is now visible with the file and the error. What I did not observe: the failure path in a running game, which needs a held file or a full disk during a world save. The change only reads two `Result`s that were ignored. The `pr_ready` block follows as a comment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:25:16 +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#6711
No description provided.