[PR #3642] [MERGED] off hand: filling a composter or using bone meal ends the click before the off-hand torch #5116

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3642
Author: @iLostName
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: off-hand-waits-for-main-hand


📝 Commits (5)

  • 30d33e0 off hand: filling a composter or using bone meal ends the click before the off-hand torch
  • 8c3d85e Merge remote-tracking branch 'origin/main' into upd-3642
  • ae0512e Merge main: the composter's useItemOn result is an InteractionResult
  • d409f69 Merge remote-tracking branch 'origin/main' into upd-3642
  • 2b2a8be Merge main into off-hand-waits-for-main-hand (no conflicts)

📊 Changes

4 files changed (+91 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/composter.rs (+11 -0)
📝 crates/horizon-client/src/game/remote.rs (+26 -0)
📝 crates/horizon-world/src/level/bonemeal.rs (+25 -0)
📝 crates/horizon-world/src/level/growth_tests.rs (+29 -0)

📄 Description

What and why

With a torch in the off hand, filling a composter by hand or using bone meal on a valid target also placed the torch: the server client predicted both as passing, so it went on to the off hand. They are now successes on the client, as in vanilla, so the click ends with the main hand and swings. A sapling, azalea or mushroom still passes on the client, as in vanilla 26.3, so the off hand is still tried there. Fixes #3536.

Vanilla reference

ComposterBlock.useItemOn is SUCCESS for a compostable item below level 8, and BoneMealItem.useOn is SUCCESS on the client when isValidBonemealTarget holds or growWaterPlant finds full water; Minecraft.startUseItem stops on any success. SaplingBlock, AzaleaBlock and MushroomBlock.isValidBonemealTarget are only true on a ServerLevel.

Self-check

pr_ready (tools/pr_ready.py --quick on PC-Lost, against origin/main at 64990cd32, 4 min 48 s)

Check Result
Scope ✅ 4 files, +91 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 408 run, FAILED (failures=1, skipped=12) (1 min 2 s)
rustfmt ✅ (10 s)
clippy ✅ (25 s)
tests: horizon-client, horizon-world ✅ 1058 passed (2 min 6 s)
doc tests ✅ 0 passed (1 min 3 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The one failure under Python tests is test_port_publish.PublishTests.test_body_has_names_and_signatures_only, a ~/ against ~\ path check that fails on Windows on main too. Parity is left to CI.


🔄 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/3642 **Author:** [@iLostName](https://github.com/iLostName) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `off-hand-waits-for-main-hand` --- ### 📝 Commits (5) - [`30d33e0`](https://github.com/horizon-rust/horizon/commit/30d33e077fe0b478126c56e0ea49c569f2c43e91) off hand: filling a composter or using bone meal ends the click before the off-hand torch - [`8c3d85e`](https://github.com/horizon-rust/horizon/commit/8c3d85eb58dcd451b531261d5038eca33397684a) Merge remote-tracking branch 'origin/main' into upd-3642 - [`ae0512e`](https://github.com/horizon-rust/horizon/commit/ae0512e299100f5844306faeb018a68580766453) Merge main: the composter's useItemOn result is an InteractionResult - [`d409f69`](https://github.com/horizon-rust/horizon/commit/d409f691dc26527f8f98c7d00255cb142f60aefe) Merge remote-tracking branch 'origin/main' into upd-3642 - [`2b2a8be`](https://github.com/horizon-rust/horizon/commit/2b2a8bedd4960088470ae9be68d5151110a52613) Merge main into off-hand-waits-for-main-hand (no conflicts) ### 📊 Changes **4 files changed** (+91 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/composter.rs` (+11 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+26 -0) 📝 `crates/horizon-world/src/level/bonemeal.rs` (+25 -0) 📝 `crates/horizon-world/src/level/growth_tests.rs` (+29 -0) </details> ### 📄 Description ## What and why With a torch in the off hand, filling a composter by hand or using bone meal on a valid target also placed the torch: the server client predicted both as passing, so it went on to the off hand. They are now successes on the client, as in vanilla, so the click ends with the main hand and swings. A sapling, azalea or mushroom still passes on the client, as in vanilla 26.3, so the off hand is still tried there. Fixes #3536. ## Vanilla reference `ComposterBlock.useItemOn` is SUCCESS for a compostable item below level 8, and `BoneMealItem.useOn` is SUCCESS on the client when `isValidBonemealTarget` holds or `growWaterPlant` finds full water; `Minecraft.startUseItem` stops on any success. `SaplingBlock`, `AzaleaBlock` and `MushroomBlock.isValidBonemealTarget` are only true on a `ServerLevel`. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on PC-Lost, against origin/main at 64990cd32, 4 min 48 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +91 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 408 run, FAILED (failures=1, skipped=12) (1 min 2 s) | | rustfmt | ✅ (10 s) | | clippy | ✅ (25 s) | | tests: horizon-client, horizon-world | ✅ 1058 passed (2 min 6 s) | | doc tests | ✅ 0 passed (1 min 3 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The one failure under Python tests is `test_port_publish.PublishTests.test_body_has_names_and_signatures_only`, a `~/` against `~\` path check that fails on Windows on main too. Parity is left to CI. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:21 +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#5116
No description provided.