From c1c300545402b4eb1de989a6307c5f41891fd4a3 Mon Sep 17 00:00:00 2001 From: snowleo Date: Mon, 18 Jul 2011 04:59:47 +0200 Subject: [PATCH] Fix InventoryWorkaround.addItem() not using the combined list. --- .../src/com/earth2me/essentials/InventoryWorkaround.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java b/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java index 3cbcd1b2e..e163cfb58 100644 --- a/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java +++ b/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java @@ -100,9 +100,9 @@ public final class InventoryWorkaround } - for (int i = 0; i < items.length; i++) + for (int i = 0; i < combined.length; i++) { - final ItemStack item = items[i]; + final ItemStack item = combined[i]; while (true) { // Do we already have a stack of it?