[PR #606] [MERGED] Clear block breaking progress when opening inventory #2672

Closed
opened 2026-11-02 15:58:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/606
Author: @Online5277
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ludovic111

Base: main ← Head: fix/inventory-break-progress


📝 Commits (1)

  • 1fc3f67 Cancel block mining immediately when opening screens

📊 Changes

3 files changed (+27 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+3 -0)
📝 crates/horizon-client/src/game/hand.rs (+12 -0)
📝 crates/horizon-client/src/game/remote.rs (+12 -8)

📄 Description

Opening inventory while mining now clears the block's cracks immediately. Previously the local hand stopped receiving attack ticks behind a screen but kept its active destruction state, leaving the cracks visible until gameplay resumed.

Cancel mining when releasing the gameplay cursor, before any window-dependent work. Reuse the local destroy-stop behavior, discard queued attacks, clear the rendered progress, and send the existing cancel-dig packet for remote/integrated connections. The remote tick uses the same cancellation helper, so it cannot send the cancellation twice.

Fixes #588.

Validation: client all-target Clippy with warnings denied, formatting, and diff checks passed. There is no cheap existing Game fixture for the screen transition; the visible result and server cancellation still need in-game testing, so this PR is a draft.


🔄 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/606 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/inventory-break-progress` --- ### 📝 Commits (1) - [`1fc3f67`](https://github.com/horizon-rust/horizon/commit/1fc3f6724e11a5a9f7fcd4660151d7243b85ac78) Cancel block mining immediately when opening screens ### 📊 Changes **3 files changed** (+27 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+3 -0) 📝 `crates/horizon-client/src/game/hand.rs` (+12 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+12 -8) </details> ### 📄 Description Opening inventory while mining now clears the block's cracks immediately. Previously the local hand stopped receiving attack ticks behind a screen but kept its active destruction state, leaving the cracks visible until gameplay resumed. Cancel mining when releasing the gameplay cursor, before any window-dependent work. Reuse the local destroy-stop behavior, discard queued attacks, clear the rendered progress, and send the existing cancel-dig packet for remote/integrated connections. The remote tick uses the same cancellation helper, so it cannot send the cancellation twice. Fixes #588. Validation: client all-target Clippy with warnings denied, formatting, and diff checks passed. There is no cheap existing Game fixture for the screen transition; the visible result and server cancellation still need in-game testing, so this PR is a draft. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:58:07 +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#2672
No description provided.