Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Bafran committed Dec 29, 2024
1 parent 98f887a commit 98d0cc1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pumpkin-inventory/src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ impl PlayerInventory {
&mut self.items[self.selected + 36 - 9]
}

pub fn set_held_item(&mut self, item: Option<ItemStack>) {
debug_assert!((0..9).contains(&self.selected));
self.items[self.selected + 36 - 9] = item;
}

pub fn get_slot_with_item(&self, item_id: u16) -> Option<usize> {
for slot in 9..=44 {
match &self.items[slot - 9] {
Expand Down

0 comments on commit 98d0cc1

Please sign in to comment.