mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
fix set_slot armor indexing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user