From dc13f46ff140e3b3e2fc8e1648c793577571b7c0 Mon Sep 17 00:00:00 2001 From: snowleo Date: Thu, 20 Dec 2012 16:07:18 +0100 Subject: [PATCH] Don't use broken CB methods ... --- .../essentials/craftbukkit/InventoryWorkaround.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/craftbukkit/InventoryWorkaround.java b/Essentials/src/com/earth2me/essentials/craftbukkit/InventoryWorkaround.java index 76ce91138..2e05f5c43 100644 --- a/Essentials/src/com/earth2me/essentials/craftbukkit/InventoryWorkaround.java +++ b/Essentials/src/com/earth2me/essentials/craftbukkit/InventoryWorkaround.java @@ -16,7 +16,7 @@ public final class InventoryWorkaround { } - public static int firstPartial(final Inventory inventory, final ItemStack item, final int maxAmount) + private static int firstPartial(final Inventory inventory, final ItemStack item, final int maxAmount) { if (item == null) { @@ -38,9 +38,9 @@ public final class InventoryWorkaround { final Inventory fakeInventory = Bukkit.getServer().createInventory(null, inventory.getType()); fakeInventory.setContents(inventory.getContents()); - if (fakeInventory.addItem(items).isEmpty()) + if (addItems(fakeInventory, items).isEmpty()) { - inventory.addItem(items); + addItems(inventory, items); return true; } return false;