summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-18 04:59:47 +0200
committersnowleo <schneeleo@gmail.com>2011-07-18 04:59:47 +0200
commitc1c300545402b4eb1de989a6307c5f41891fd4a3 (patch)
tree0256b9d7816e93d2939cdb5d32759009a8fe2e11
parenta3c71e461794b7d61943c8bd9281a72a56cd49da (diff)
downloadEssentials-c1c300545402b4eb1de989a6307c5f41891fd4a3.tar
Essentials-c1c300545402b4eb1de989a6307c5f41891fd4a3.tar.gz
Essentials-c1c300545402b4eb1de989a6307c5f41891fd4a3.tar.lz
Essentials-c1c300545402b4eb1de989a6307c5f41891fd4a3.tar.xz
Essentials-c1c300545402b4eb1de989a6307c5f41891fd4a3.zip
Fix InventoryWorkaround.addItem() not using the combined list.
-rw-r--r--Essentials/src/com/earth2me/essentials/InventoryWorkaround.java4
1 files 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?