Skip to content

Commit

Permalink
fix set_slot armor indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Luk-ESC committed Aug 22, 2024
1 parent e1a1a22 commit d85e9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pumpkin-inventory/src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl PlayerInventory {
1..=4 => self.crafting[slot - 1] = item,
5..=8 => {
match item {
None => self.armor[slot - 4] = None,
None => self.armor[slot - 5] = None,
Some(item) => {
// TODO: Replace asserts with error handling
match slot - 5 {
Expand Down

0 comments on commit d85e9bc

Please sign in to comment.