From 03fe857ec2c5b49577257828a0e19fa82224f6bd Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Fri, 16 Oct 2026 03:05:26 +0200 Subject: [PATCH] Dropping from a menu swings the hand LivingEntity.drop swings the main hand for every drop, so throwing a slot's item with Q over the inventory, a container or a creative tab plays the swing (the inventory's player model shows it). Horizon only swung for the drop key in game; Player.drop's port now swings itself. Fixes #442 Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index b4787eb0b..f27928511 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -144,7 +144,7 @@ use horizon_client::{ creative::{Creative, Names}, entities::{Experience, ExperienceOrb, ItemEntity}, environment::Environment, - first_person::Hand, + first_person::{Hand, SwingAnimation}, gfx::{Frame, Renderer}, hud::{HudAtlas, HudBatch, rgba}, hud_layout, hud_overlays, @@ -1443,13 +1443,15 @@ impl Game<'_> { return; }; self.player_drop(thrown); - self.swing_arm(); } /// `Player.drop`: the statistics and a thrown item entity in front of the player. fn player_drop(&mut self, thrown: ItemStack) { let Some(eye) = self.eye_position() else { return; }; + // LivingEntity.drop: every drop swings the main hand, a menu's + // THROW and a creative tab's drop included. + self.swing_hand(Hand::Main, SwingAnimation::DEFAULT); // Player.drop: the drop statistics. self.stats.add("dropped", &thrown.item, thrown.count as i32); self.stats.custom("drop", 1);