From 2c47e79cc7dd3e2e46229a8ec02e28bd590f082b Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Wed, 21 Oct 2026 20:13:59 +0200 Subject: [PATCH] Use: no block placing or item use while an item is in use Minecraft.handleKeybinds only calls startUseItem while the player is not using an item: use clicks are consumed and held use doesn't repeat. Horizon repeated held use every 4 ticks regardless, so with a shield raised in the off hand, aiming at a block placed the main hand's block (or spawn egg, boat...). Fixes #1050 Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index 4013bb04b..613d1f235 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -4154,8 +4154,11 @@ impl Game<'_> { }); horizon_client::spans::time("tick_particles", || self.tick_particles()); } + // Minecraft.handleKeybinds: held use repeats only while no item is in + // use (a raised shield or a drawn bow places and uses nothing). if self.right && self.use_delay == 0 + && self.using.is_none() && self.screen == Screen::Playing && self.sleeping.is_none() { @@ -9830,7 +9833,9 @@ impl Game<'_> { self.toggles .button(3, pressed, false, self.settings.toggle_use); self.right = self.toggles.is_down(3); - if pressed { + // handleKeybinds consumes use clicks without acting while an + // item is in use. + if pressed && self.using.is_none() { self.use_with_hand()?; self.use_delay = 4; }