diff options
author | EdGruberman <ed@rjump.com> | 2013-02-21 14:22:09 -0700 |
---|---|---|
committer | riking <rikingcoding@gmail.com> | 2013-03-23 16:23:03 -0700 |
commit | e1b50b011041be08038dabd44ac3b6afc9d45f19 (patch) | |
tree | 15df942f61e1792283d21a9974044add837e3bb9 | |
parent | e61a6bab05bbc19902f486a174b2073f3b884ceb (diff) | |
download | craftbukkit-e1b50b011041be08038dabd44ac3b6afc9d45f19.tar craftbukkit-e1b50b011041be08038dabd44ac3b6afc9d45f19.tar.gz craftbukkit-e1b50b011041be08038dabd44ac3b6afc9d45f19.tar.lz craftbukkit-e1b50b011041be08038dabd44ac3b6afc9d45f19.tar.xz craftbukkit-e1b50b011041be08038dabd44ac3b6afc9d45f19.zip |
Identify outside slot independent of inventory type. Fixes BUKKIT-2768
-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 6ffc73de..1c7934da 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java @@ -75,7 +75,7 @@ public class CraftInventoryView extends InventoryView { public static SlotType getSlotType(InventoryView inventory, int slot) { SlotType type = SlotType.CONTAINER; - if (slot < inventory.getTopInventory().getSize()) { + if (slot >= 0 && slot < inventory.getTopInventory().getSize()) { switch(inventory.getType()) { case FURNACE: if (slot == 2) { |