[PR #6191] [CLOSED] Player data: a failed save is logged instead of dropped #6710

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6191
Author: @Domanffe
Created: 11/1/2026
Status: ❌ Closed

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


📝 Commits (1)

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

📊 Changes

2 files changed (+9 additions, -5 deletions)

View changed files

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

📄 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/6191 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 11/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/playerdata-save-errors` --- ### 📝 Commits (1) - [`b16f4f7`](https://github.com/horizon-rust/horizon/commit/b16f4f7eaa019d09f2374232c0969a3cbf28d1f5) Player data: a failed save is logged instead of dropped ### 📊 Changes **2 files changed** (+9 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/playerdata.rs` (+6 -2) 📝 `roadmap/roadmap.toml` (+3 -3) </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:15 +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#6710
No description provided.