[PR #3103] [MERGED] Creative hotbar: say 'Saved' only when it was saved #4806

Closed
opened 2026-11-03 05:08:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3103
Author: @Domanffe
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/creative-hotbar-save-message


📝 Commits (2)

  • 3fe4834 Creative hotbar: say 'Saved' only when it was saved
  • 611d1ef Merge remote-tracking branch 'origin/main' into upd/3103

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/creative_hotbar.rs (+5 -1)

📄 Description

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

Saving a creative hotbar row did let _ = hotbar::save(..) and then showed
"Saved hotbar N" on the action bar either way. When hotbar.nbt could not be
written the player was told the row was saved, and the next load brought back
the old one.

The failure is logged now and the message is skipped, which is what vanilla's
CreativeModeInventoryScreen.saveHotbar does: it sets displayedMessage
inside the try, so an IOException only logs.

The load path is untouched.

cargo clippy -p horizon-client --all-targets -- -D warnings → clean;
cargo fmt --all --check clean.

No new test: the save path is options.txt's directory, which the test process
does not own. The change is the early return.


🔄 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/3103 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/creative-hotbar-save-message` --- ### 📝 Commits (2) - [`3fe4834`](https://github.com/horizon-rust/horizon/commit/3fe4834ceb8ead64cef9f300679bdf542bc647c2) Creative hotbar: say 'Saved' only when it was saved - [`611d1ef`](https://github.com/horizon-rust/horizon/commit/611d1ef51e6425000fffc5b2ccb24ac212dbf167) Merge remote-tracking branch 'origin/main' into upd/3103 ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creative_hotbar.rs` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Saving a creative hotbar row did `let _ = hotbar::save(..)` and then showed "Saved hotbar N" on the action bar either way. When `hotbar.nbt` could not be written the player was told the row was saved, and the next load brought back the old one. The failure is logged now and the message is skipped, which is what vanilla's `CreativeModeInventoryScreen.saveHotbar` does: it sets `displayedMessage` inside the `try`, so an `IOException` only logs. The load path is untouched. `cargo clippy -p horizon-client --all-targets -- -D warnings` → clean; `cargo fmt --all --check` clean. No new test: the save path is `options.txt`'s directory, which the test process does not own. The change is the early return. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:05 +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#4806
No description provided.