From 8afd6a2375495a622abfc8d2730090b4c108becc Mon Sep 17 00:00:00 2001 From: maxomatic458 <104733404+maxomatic458@users.noreply.github.com> Date: Tue, 8 Oct 2024 20:17:28 +0200 Subject: [PATCH] fix player still being able to drop stack --- crates/valence_inventory/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/valence_inventory/src/lib.rs b/crates/valence_inventory/src/lib.rs index 9007d7b52..686b2f49b 100644 --- a/crates/valence_inventory/src/lib.rs +++ b/crates/valence_inventory/src/lib.rs @@ -1206,6 +1206,7 @@ fn handle_player_actions( slots: Cow::Borrowed(inv.slot_slice()), carried_item: Cow::Borrowed(&ItemStack::EMPTY), }); + continue; } let stack = inv.replace_slot(held.slot(), ItemStack::EMPTY);