diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java index 8925e601..ae47a0ed 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java @@ -127,8 +127,12 @@ public class CraftInventoryView extends InventoryView { } else { if (slot == -999) { type = SlotType.OUTSIDE; - } else if (inventory.getType() == InventoryType.CRAFTING && slot < 9) { - type = SlotType.ARMOR; + } else if (inventory.getType() == InventoryType.CRAFTING) { + if (slot < 9) { + type = SlotType.ARMOR; + } else if (slot > 35) { + type = SlotType.QUICKBAR; + } } else if (slot >= (inventory.countSlots() - 9)) { type = SlotType.QUICKBAR; } |