[PR #1245] [MERGED] Fix delay between instant survival block breaks in multiplayer #3452

Closed
opened 2026-11-03 04:09:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1245
Author: @rdbtCVS
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: t3/fix-instant-mined-block-delay


📝 Commits (1)

  • d86a1b2 Fix cooldown after instant survival breaks in multiplayer

📊 Changes

3 files changed (+156 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+1 -3)
➕ tests/test_remote_mining.py (+149 -0)
📝 tools/test_first_person_parity.py (+6 -0)

📄 Description

What and why

Holding attack on instantly breakable blocks in multiplayer incorrectly paused for five ticks after each survival break. Remove the cooldown from the instant-break path so consecutive blocks break on successive ticks. Creative breaking and completed gradual mining retain their cooldowns.

Vanilla reference

Followed the pinned 26.3 bytecode for MultiPlayerGameMode.startDestroyBlock and continueDestroyBlock, inspected with tools/rea_vanilla.py.

Extended tools/test_first_person_parity.py with consecutive instant breaks using zero-hardness blocks and a shovel with haste. Added a regression fixture that executes the live remote_mining method and checks consecutive breaks, START/STOP packets, and creative/gradual cooldowns. The regression fails on the original code and passes with this fix.

Self-check

  • The regression fixture fails on the original code and passes with this fix.
  • Extended first-person vanilla parity harness: 4,196 cases and 382,104 output lines match the pinned client.
  • The broader parity selection is left to CI because this worktree lacks prepared client resources. The first-person comparison above was run explicitly against the existing pinned jars.

pr_ready (tools/pr_ready.py on archlinux, against origin/main at 022600481, 15 min 38 s)

Check Result
Scope ✅ 3 files, +156 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 291 passed (44 s)
rustfmt ✅ (9 s)
clippy ✅ (8 min 44 s)
tests: horizon-client ✅ 1108 passed (5 min 50 s)
doc tests ✅ 0 passed (2 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 264 affected, to run in CI (no vanilla data here): ambient_sound, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo, basic_feature, biome_chunk, biome_generation and 252 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🔄 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/1245 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3/fix-instant-mined-block-delay` --- ### 📝 Commits (1) - [`d86a1b2`](https://github.com/horizon-rust/horizon/commit/d86a1b2882b81d403bde2f02076143ab50814dad) Fix cooldown after instant survival breaks in multiplayer ### 📊 Changes **3 files changed** (+156 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+1 -3) ➕ `tests/test_remote_mining.py` (+149 -0) 📝 `tools/test_first_person_parity.py` (+6 -0) </details> ### 📄 Description ## What and why Holding attack on instantly breakable blocks in multiplayer incorrectly paused for five ticks after each survival break. Remove the cooldown from the instant-break path so consecutive blocks break on successive ticks. Creative breaking and completed gradual mining retain their cooldowns. ## Vanilla reference Followed the pinned 26.3 bytecode for `MultiPlayerGameMode.startDestroyBlock` and `continueDestroyBlock`, inspected with `tools/rea_vanilla.py`. Extended `tools/test_first_person_parity.py` with consecutive instant breaks using zero-hardness blocks and a shovel with haste. Added a regression fixture that executes the live `remote_mining` method and checks consecutive breaks, START/STOP packets, and creative/gradual cooldowns. The regression fails on the original code and passes with this fix. ## Self-check - The regression fixture fails on the original code and passes with this fix. - Extended first-person vanilla parity harness: **4,196 cases and 382,104 output lines match the pinned client**. - The broader parity selection is left to CI because this worktree lacks prepared client resources. The first-person comparison above was run explicitly against the existing pinned jars. **pr_ready** (`tools/pr_ready.py` on archlinux, against origin/main at 022600481, 15 min 38 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +156 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 291 passed (44 s) | | rustfmt | ✅ (9 s) | | clippy | ✅ (8 min 44 s) | | tests: horizon-client | ✅ 1108 passed (5 min 50 s) | | doc tests | ✅ 0 passed (2 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 264 affected, to run in CI (no vanilla data here): ambient_sound, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo, basic_feature, biome_chunk, biome_generation and 252 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:09:38 +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#3452
No description provided.