Reverse the order to avoid NPE

This commit is contained in:
GJ 2013-04-10 14:04:46 -04:00
parent f4681a282c
commit 365abaaa8f

View File

@ -37,7 +37,7 @@ public class Unarmed {
for (Iterator<ItemStack> iterator = inventory.iterator(); iterator.hasNext();) { for (Iterator<ItemStack> iterator = inventory.iterator(); iterator.hasNext();) {
ItemStack itemstack = iterator.next(); ItemStack itemstack = iterator.next();
if (itemstack.isSimilar(dropStack)) { if (dropStack.isSimilar(itemstack)) {
int itemAmount = itemstack.getAmount(); int itemAmount = itemstack.getAmount();
int itemMax = itemstack.getMaxStackSize(); int itemMax = itemstack.getMaxStackSize();