mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-04-03 10:16:23 +02: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…
x
Reference in New Issue
Block a user