mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +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();) {
|
||||
ItemStack itemstack = iterator.next();
|
||||
|
||||
if (itemstack.isSimilar(dropStack)) {
|
||||
if (dropStack.isSimilar(itemstack)) {
|
||||
int itemAmount = itemstack.getAmount();
|
||||
int itemMax = itemstack.getMaxStackSize();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user