mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Reverse the order to avoid NPE
This commit is contained in:
parent
f4681a282c
commit
365abaaa8f
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user