Fixed a NPE in the Alchemy Arrays
This commit is contained in:
parent
0ae85435ae
commit
d1d66e5388
|
@ -50,6 +50,11 @@ public class ItemStackWrapper
|
|||
|
||||
public static ItemStackWrapper getHolder(ItemStack stack)
|
||||
{
|
||||
if (stack == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return new ItemStackWrapper(stack.getItem(), stack.stackSize, stack.getItemDamage());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue