From c454326dbf46cd53a2e14481f2c6d04e1b5f76fb Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 2 Mar 2013 09:25:48 +1100 Subject: [PATCH] Pull CraftBukkit PR #1037 by @EdGruberman - fixes issues with plugins and items dropped by clicking outside an inventory. --- ...-slot-independent-of-inventory-type-.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CraftBukkit-Patches/0036-Identify-outside-slot-independent-of-inventory-type-.patch diff --git a/CraftBukkit-Patches/0036-Identify-outside-slot-independent-of-inventory-type-.patch b/CraftBukkit-Patches/0036-Identify-outside-slot-independent-of-inventory-type-.patch new file mode 100644 index 000000000..d9f1239b7 --- /dev/null +++ b/CraftBukkit-Patches/0036-Identify-outside-slot-independent-of-inventory-type-.patch @@ -0,0 +1,26 @@ +From a5d121d01e22ea78685acfed62dc7be01dfa789c Mon Sep 17 00:00:00 2001 +From: EdGruberman +Date: Thu, 21 Feb 2013 14:22:09 -0700 +Subject: [PATCH] Identify outside slot independent of inventory type; Fixes + BUKKIT-2768 + +--- + src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java +index 6ffc73d..1c7934d 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) { +-- +1.8.1-rc2 +