mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
SPIGOT-3425: Correct slot type calculation
This commit is contained in:
parent
b5df1f59f7
commit
70be90e168
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ public class CraftInventoryView extends InventoryView {
|
|||
} else if (slot > 35) {
|
||||
type = SlotType.QUICKBAR;
|
||||
}
|
||||
} else if (slot >= (inventory.countSlots() - 9)) {
|
||||
} else if (slot >= (inventory.countSlots() - (9 + 4 + 1))) { // Quickbar, Armor, Offhand
|
||||
type = SlotType.QUICKBAR;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue