diff options
Diffstat (limited to 'patches/server/0236-Inventory-removeItemAnySlot.patch')
-rw-r--r-- | patches/server/0236-Inventory-removeItemAnySlot.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0236-Inventory-removeItemAnySlot.patch b/patches/server/0236-Inventory-removeItemAnySlot.patch index 1316343a0a..f1cf07d2eb 100644 --- a/patches/server/0236-Inventory-removeItemAnySlot.patch +++ b/patches/server/0236-Inventory-removeItemAnySlot.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Inventory#removeItemAnySlot diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java -index 88d5590aa07de09e56ac0bd8d23caa588e36807b..6a47c6adb721f0c6737150d8b0ee18ab70f5f281 100644 +index 35651063e7fc48d8f2bea3d6a2b06a36cca59930..54ce9218c1759d641b2c780d79f1da1e0981c474 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java @@ -224,10 +224,16 @@ public class CraftInventory implements Inventory { @@ -26,7 +26,7 @@ index 88d5590aa07de09e56ac0bd8d23caa588e36807b..6a47c6adb721f0c6737150d8b0ee18ab for (int i = 0; i < inventory.length; i++) { if (inventory[i] == null) continue; -@@ -351,6 +357,17 @@ public class CraftInventory implements Inventory { +@@ -339,6 +345,17 @@ public class CraftInventory implements Inventory { @Override public HashMap<Integer, ItemStack> removeItem(ItemStack... items) { @@ -44,7 +44,7 @@ index 88d5590aa07de09e56ac0bd8d23caa588e36807b..6a47c6adb721f0c6737150d8b0ee18ab Preconditions.checkArgument(items != null, "items cannot be null"); HashMap<Integer, ItemStack> leftover = new HashMap<Integer, ItemStack>(); -@@ -362,7 +379,10 @@ public class CraftInventory implements Inventory { +@@ -350,7 +367,10 @@ public class CraftInventory implements Inventory { int toDelete = item.getAmount(); while (true) { |