[PR #6466] [MERGED] Maps and stopwatches: a failed save is logged instead of dropped #6893

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • 11bdbd4 Maps and stopwatches: a failed save is logged instead of dropped

📊 Changes

2 files changed (+8 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/maps.rs (+4 -2)
📝 crates/horizon-client/src/stopwatches.rs (+4 -2)

📄 Description

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

Two more world-data writes dropped their result with let _ =, after the player
files #6192:

  • game/maps.rs writes data/minecraft/maps/last_id.dat, the counter that keeps
    the next map from taking an id an existing map already has. A failed write is
    silent, and the next maps overwrite older ones' data.
  • stopwatches.rs writes the debug stopwatches' elapsed times. A failed write
    drops the timers on the next launch with no line saying why.

Both now report the file and the error with log::warn!, as the rest of the
crate does for a failed save. No behaviour change otherwise: the write still
fails, and whatever wrote before stays on disk.

What I did not observe: either failure in a running game, which needs a held
file or a full disk. The change reads two results that were ignored, and
cargo check -p horizon-client --all-targets compiles both arms.

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/6466 **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/world-save-errors` --- ### 📝 Commits (1) - [`11bdbd4`](https://github.com/horizon-rust/horizon/commit/11bdbd4712237d4271ca4ea4562fbe704e7ba065) Maps and stopwatches: a failed save is logged instead of dropped ### 📊 Changes **2 files changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/maps.rs` (+4 -2) 📝 `crates/horizon-client/src/stopwatches.rs` (+4 -2) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Two more world-data writes dropped their result with `let _ =`, after the player files #6192: - `game/maps.rs` writes `data/minecraft/maps/last_id.dat`, the counter that keeps the next map from taking an id an existing map already has. A failed write is silent, and the next maps overwrite older ones' data. - `stopwatches.rs` writes the debug stopwatches' elapsed times. A failed write drops the timers on the next launch with no line saying why. Both now report the file and the error with `log::warn!`, as the rest of the crate does for a failed save. No behaviour change otherwise: the write still fails, and whatever wrote before stays on disk. What I did not observe: either failure in a running game, which needs a held file or a full disk. The change reads two results that were ignored, and `cargo check -p horizon-client --all-targets` compiles both arms. 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:28:44 +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#6893
No description provided.