Skip to content

Commit

Permalink
fix player still being able to drop stack
Browse files Browse the repository at this point in the history
  • Loading branch information
maxomatic458 committed Oct 8, 2024
1 parent 33b4af0 commit 8afd6a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/valence_inventory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8afd6a2

Please sign in to comment.