[GH-ISSUE #1908] Continuous stone breaking sound #572

Closed
opened 2026-11-02 15:40:09 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1908

What I did: Broke a dead bush in survival mode
What happened: The dead brush broke with it's regular sound playing, but afterwards there is a constant sound of someone punching stone playing at that location until I start mining another block.
What I expected: No sound for mining stone at all
Horizon version: V0.2.60
OS, CPU, GPU: Windows 64 bit, AMD Ryzen 7 5700G, NVIDIA GeForce RTX 3060 Ti

Reported on Discord by Oddish in #horizon-bugs · Discord thread
Tags: sound

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1908 > What I did: Broke a dead bush in survival mode > What happened: The dead brush broke with it's regular sound playing, but afterwards there is a constant sound of someone punching stone playing at that location until I start mining another block. > What I expected: No sound for mining stone at all > Horizon version: V0.2.60 > OS, CPU, GPU: Windows 64 bit, AMD Ryzen 7 5700G, NVIDIA GeForce RTX 3060 Ti Reported on Discord by **Oddish** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1563999502271119520) Tags: sound **Attachments** (Discord links expire after a while; the thread keeps them) - [image.png](https://cdn.discordapp.com/attachments/1563999502271119520/1563999502602473723/image.png?ex=6adfab8b&is=6ade5a0b&hm=3291588695d685e73c6f1ea71c3fc7a4ec31fa9b22cfe1d131001a422f4dbce6&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:09 +07:00
Author
Owner

@rdbtCVS commented on GitHub (Oct 25, 2026):

🤖 Agent: rdbt's AI agent (Codex) is taking this issue. Latest upstream still retains server-side guest digging after an instant survival break; I am checking the fix against vanilla ServerPlayerGameMode and adding a regression to the LAN harness.

<!-- gh-comment-id:6404660144 --> @rdbtCVS commented on GitHub (Oct 25, 2026): 🤖 Agent: rdbt's AI agent (Codex) is taking this issue. Latest upstream still retains server-side guest digging after an instant survival break; I am checking the fix against vanilla ServerPlayerGameMode and adding a regression to the LAN harness.
Author
Owner

@rdbtCVS commented on GitHub (Oct 25, 2026):

🤖 Agent: rdbt's AI agent (Codex). This shares the same cause as #1880 (replanted flowers and crops breaking again). After an instant survival break, the client sends START without a later STOP; the server kept the old digging position. That stale state both produces repeated stone hit sounds while the position is air and breaks anything replanted there.

The existing fix in #1922 clears the completed dig. I moved the explicit sound regression there from #1966 and verified zero subsequent stone hit sounds and a surviving replacement bush for both players in both host modes. #1966 is closed as redundant; #1922 now tracks both issues.

<!-- gh-comment-id:6404988320 --> @rdbtCVS commented on GitHub (Oct 25, 2026): 🤖 Agent: rdbt's AI agent (Codex). This shares the same cause as #1880 (replanted flowers and crops breaking again). After an instant survival break, the client sends START without a later STOP; the server kept the old digging position. That stale state both produces repeated stone hit sounds while the position is air and breaks anything replanted there. The existing fix in #1922 clears the completed dig. I moved the explicit sound regression there from #1966 and verified zero subsequent stone hit sounds and a surviving replacement bush for both players in both host modes. #1966 is closed as redundant; #1922 now tracks both issues.
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

This looks fixed on main by #1922 (merged 2026-10-26, "Fix repeated mining sounds and replanted blocks breaking"). Does it still happen on a build newer than that?

<!-- gh-comment-id:6414872495 --> @kacpherek commented on GitHub (Oct 26, 2026): This looks fixed on main by #1922 (merged 2026-10-26, "Fix repeated mining sounds and replanted blocks breaking"). Does it still happen on a build newer than that?
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged PR #1922 clears completed instant-break digging and tests that no repeated stone-hit sound follows. Recommend closing as fixed unless this still reproduces on a build containing that change.

<!-- gh-comment-id:6418476030 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged PR #1922 clears completed instant-break digging and tests that no repeated stone-hit sound follows. Recommend closing as fixed unless this still reproduces on a build containing that change.
Author
Owner

@levzzz5154 commented on GitHub (Oct 26, 2026):

🤖 Agent: this is fixed on current main as well: commit 09ff66bf "Fix stale server digging after instant survival breaks" (PR #1922, merged 2026-10-26). The constant "someone punching stone" came from the same stale dig as #1340.

The mechanism. A dead bush has hardness 0, so the client breaks it at once and sends no STOP_DESTROY_BLOCK and no ABORT_DESTROY_BLOCK (vanilla's MultiPlayerGameMode.startDestroyBlock destroys the block in the insta-mine branch and leaves isDestroying false, so stopDestroyBlock sends nothing). The server therefore kept GuestPlay.digging on the emptied cell, and its guest tick went on "digging" it: tick_mining finds air, whose hardness is 0.0, so it takes the instant-break path every tick and plays the block's hit sound — and air's sound group in Horizon is stone, which is exactly the "someone punching stone" you heard, at the place of the dead bush, until another block was mined.

09ff66bf makes the server forget the dig when the instant break is done, as ServerPlayerGameMode.handleBlockBreakAction's insta-mine branch does (destroyAndAck returns before isDestroyingBlock is set):

// ServerPlayerGameMode.handleBlockBreakAction: creative and
// instant survival STARTs finish without a STOP from the client.
// tick_mining clears mining on completion; forget the START too,
// so a flower or crop planted here later is not broken again.
if digging.is_some()
    && let Some(play) = host.play.get_mut(&conn)
    && (host.hub.guests[gi].creative() || play.mining.is_none())
{
    play.digging = None;
}

Evidence. A LAN harness check that breaks a dead bush in survival (and a stone block in creative) with one left-click, releases the attack, waits 40 ticks, puts the block back and waits 100 more, counting minecraft:block.stone.hit for the host and the guest:

$ HORIZON_E2E_HEADLESS=1 python3 tools/lan_e2e.py --bin-dir target/fast --check dig_stop
[lan] dig_stop: PASS {'host': {..., 'survival broken': 'minecraft:air', 'survival mining': None,
 'survival replacement': ['minecraft:stone', 'minecraft:stone'], 'survival hits': {'host': 0, 'guest': 0}, ...},
 'guest': {..., 'survival hits': {'host': 0, 'guest': 0}, ...}}

No mining sound is left running (survival hits is 0 on both sides) and the block put back stays. The existing instant_digging check of PR #1922 agrees:

$ python3 tools/lan_e2e.py --bin-dir target/fast --check instant_digging
[lan] instant_digging: PASS {'host': {'broken': 'minecraft:air', 'stone_hits': 0, 'replacement': 'minecraft:dead_bush'},
 'guest': {'broken': 'minecraft:air', 'stone_hits': 0, 'replacement': 'minecraft:dead_bush'}}

Without the fix the sound comes back. Removing only the play.digging = None block above and rebuilding gives 33 minecraft:block.stone.hit sounds after the instant break, on both the host and the guest — the constant sound of the report:

[lan] dig_stop: FAIL AssertionError("host creative: the server kept digging: {...
 'survival broken': 'minecraft:air', 'survival hits': {'host': 33, 'guest': 33}, ...}")

The check and the run are in PR #2575 (it also adds the HORIZON_E2E_HEADLESS switch the suite needs on a machine with no focused window: without it the games pause on the focus loss and wait_ready never completes).

I could not close this issue myself (the account has pull rights, not issue-closing rights) — leaving it to a maintainer.

<!-- gh-comment-id:6429956870 --> @levzzz5154 commented on GitHub (Oct 26, 2026): 🤖 Agent: this is fixed on current `main` as well: commit `09ff66bf` "Fix stale server digging after instant survival breaks" (PR #1922, merged 2026-10-26). The constant "someone punching stone" came from the same stale dig as #1340. **The mechanism.** A dead bush has hardness 0, so the client breaks it at once and sends no `STOP_DESTROY_BLOCK` and no `ABORT_DESTROY_BLOCK` (vanilla's `MultiPlayerGameMode.startDestroyBlock` destroys the block in the insta-mine branch and leaves `isDestroying` false, so `stopDestroyBlock` sends nothing). The server therefore kept `GuestPlay.digging` on the emptied cell, and its guest tick went on "digging" it: `tick_mining` finds air, whose hardness is 0.0, so it takes the instant-break path every tick and plays the block's hit sound — and **air's sound group in Horizon is stone**, which is exactly the "someone punching stone" you heard, at the place of the dead bush, until another block was mined. `09ff66bf` makes the server forget the dig when the instant break is done, as `ServerPlayerGameMode.handleBlockBreakAction`'s insta-mine branch does (`destroyAndAck` returns before `isDestroyingBlock` is set): ```rust // ServerPlayerGameMode.handleBlockBreakAction: creative and // instant survival STARTs finish without a STOP from the client. // tick_mining clears mining on completion; forget the START too, // so a flower or crop planted here later is not broken again. if digging.is_some() && let Some(play) = host.play.get_mut(&conn) && (host.hub.guests[gi].creative() || play.mining.is_none()) { play.digging = None; } ``` **Evidence.** A LAN harness check that breaks a dead bush in survival (and a stone block in creative) with one left-click, releases the attack, waits 40 ticks, puts the block back and waits 100 more, counting `minecraft:block.stone.hit` for the host and the guest: ``` $ HORIZON_E2E_HEADLESS=1 python3 tools/lan_e2e.py --bin-dir target/fast --check dig_stop [lan] dig_stop: PASS {'host': {..., 'survival broken': 'minecraft:air', 'survival mining': None, 'survival replacement': ['minecraft:stone', 'minecraft:stone'], 'survival hits': {'host': 0, 'guest': 0}, ...}, 'guest': {..., 'survival hits': {'host': 0, 'guest': 0}, ...}} ``` No mining sound is left running (`survival hits` is 0 on both sides) and the block put back stays. The existing `instant_digging` check of PR #1922 agrees: ``` $ python3 tools/lan_e2e.py --bin-dir target/fast --check instant_digging [lan] instant_digging: PASS {'host': {'broken': 'minecraft:air', 'stone_hits': 0, 'replacement': 'minecraft:dead_bush'}, 'guest': {'broken': 'minecraft:air', 'stone_hits': 0, 'replacement': 'minecraft:dead_bush'}} ``` **Without the fix the sound comes back.** Removing only the `play.digging = None` block above and rebuilding gives 33 `minecraft:block.stone.hit` sounds after the instant break, on both the host and the guest — the constant sound of the report: ``` [lan] dig_stop: FAIL AssertionError("host creative: the server kept digging: {... 'survival broken': 'minecraft:air', 'survival hits': {'host': 33, 'guest': 33}, ...}") ``` The check and the run are in PR #2575 (it also adds the `HORIZON_E2E_HEADLESS` switch the suite needs on a machine with no focused window: without it the games pause on the focus loss and `wait_ready` never completes). I could not close this issue myself (the account has pull rights, not issue-closing rights) — leaving it to a maintainer.
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: This was fixed by 09ff66bfe ("Fix stale server digging after instant survival breaks"), shipped in v0.2.67 — you were on v0.2.60. The instant-break path left the server's dig state set, so the 2019/2020 crack-and-hit events kept playing at the spot until the next dig cleared it. Suggest closing.

<!-- gh-comment-id:6441902907 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: This was fixed by `09ff66bfe` ("Fix stale server digging after instant survival breaks"), shipped in v0.2.67 — you were on v0.2.60. The instant-break path left the server's dig state set, so the 2019/2020 crack-and-hit events kept playing at the spot until the next dig cleared it. Suggest closing.
Author
Owner

@kacpherek commented on GitHub (Oct 27, 2026):

Fixed by #1922: an instant break no longer leaves a stale dig, so the stone-hit sound stops.

<!-- gh-comment-id:6453965808 --> @kacpherek commented on GitHub (Oct 27, 2026): Fixed by #1922: an instant break no longer leaves a stale dig, so the stone-hit sound stops.
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#572
No description provided.