diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-01 01:31:20 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-01 01:31:20 +0200 |
commit | 5346b112a40490fdea857aa8e0a02c5e6dab6dab (patch) | |
tree | e709a36422bc11965cce3ef516d76a26e8d2b6f9 | |
parent | d95d7745addb6a057629f00268529ac13ca54b27 (diff) | |
download | Essentials-5346b112a40490fdea857aa8e0a02c5e6dab6dab.tar Essentials-5346b112a40490fdea857aa8e0a02c5e6dab6dab.tar.gz Essentials-5346b112a40490fdea857aa8e0a02c5e6dab6dab.tar.lz Essentials-5346b112a40490fdea857aa8e0a02c5e6dab6dab.tar.xz Essentials-5346b112a40490fdea857aa8e0a02c5e6dab6dab.zip |
Don't add items with an amount of 0 or lower to the inventory.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/InventoryWorkaround.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java b/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java index 9ac63c374..3cbcd1b2e 100644 --- a/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java +++ b/Essentials/src/com/earth2me/essentials/InventoryWorkaround.java @@ -80,7 +80,7 @@ public final class InventoryWorkaround ItemStack[] combined = new ItemStack[items.length]; for (int i = 0; i < items.length; i++) { - if (items[i] == null) + if (items[i] == null || items[i].getAmount() < 1) { continue; } |