SPIGOT-3425: Correct slot type calculation

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-07-16 11:03:19 +10:00
parent 8f5c16fce3
commit 16a95139f7

View File

@@ -133,7 +133,7 @@ public class CraftInventoryView extends InventoryView {
} else if (slot > 35) { } else if (slot > 35) {
type = SlotType.QUICKBAR; type = SlotType.QUICKBAR;
} }
} else if (slot >= (inventory.countSlots() - 9)) { } else if (slot >= (inventory.countSlots() - (9 + 4 + 1))) { // Quickbar, Armor, Offhand
type = SlotType.QUICKBAR; type = SlotType.QUICKBAR;
} }
} }