diff options
author | Pokechu22 <Pokechu022@gmail.com> | 2017-05-26 20:20:59 -0700 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-05-28 10:32:31 +1000 |
commit | 44dd60ac27b4d48f612a4290f8bb4e7cc71b3003 (patch) | |
tree | fb10db1e9a2ce07675da96f1182c7646c4d34dc2 /src/main/java/org/bukkit | |
parent | 274304b8ca4f1f84cdd5d0746fef9bbe59a59862 (diff) | |
download | craftbukkit-44dd60ac27b4d48f612a4290f8bb4e7cc71b3003.tar craftbukkit-44dd60ac27b4d48f612a4290f8bb4e7cc71b3003.tar.gz craftbukkit-44dd60ac27b4d48f612a4290f8bb4e7cc71b3003.tar.lz craftbukkit-44dd60ac27b4d48f612a4290f8bb4e7cc71b3003.tar.xz craftbukkit-44dd60ac27b4d48f612a4290f8bb4e7cc71b3003.zip |
SPIGOT-3272: Fix duplicate creative inventory
This change properly identifies the creative inventory as one with 5 crafting slots (as that's the default set in ContainerPlayer, and handled properly in other containers), instead of having the same inventory twice (which breaks slot identification).
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java index b6c2f73e..8ca0ccc5 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java @@ -127,7 +127,7 @@ public class CraftInventoryView extends InventoryView { } else { if (slot == -999 || slot == -1) { type = SlotType.OUTSIDE; - } else if (inventory.getType() == InventoryType.CRAFTING) { + } else if (inventory.getType() == InventoryType.CRAFTING) { // Also includes creative inventory if (slot < 9) { type = SlotType.ARMOR; } else if (slot > 35) { |