Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
maxomatic458 committed Oct 8, 2024
1 parent ffc260f commit 33b4af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/valence_inventory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub struct Inventory {
pub changed: u64,
/// Makes a inventory read-only. This will prevent adding
/// or removing items. If this is a player inventory
/// This will also make it impossible to drop items while not
/// This will also make it impossible to drop items while not
/// in the inventory (e.g. by pressing Q)
pub readonly: bool,
}
Expand Down Expand Up @@ -868,7 +868,7 @@ fn handle_click_slot(

if pkt.slot_idx < 0 && pkt.mode == ClickMode::Click {
// The client is dropping the cursor item by clicking outside the window.

let stack = std::mem::take(&mut cursor_item.0);

if !stack.is_empty() {
Expand Down

0 comments on commit 33b4af0

Please sign in to comment.