Fixed a NPE in the Alchemy Arrays

This commit is contained in:
WayofTime 2016-06-29 17:10:12 -04:00
parent 0ae85435ae
commit d1d66e5388

View file

@ -50,6 +50,11 @@ public class ItemStackWrapper
public static ItemStackWrapper getHolder(ItemStack stack) public static ItemStackWrapper getHolder(ItemStack stack)
{ {
if (stack == null)
{
return null;
}
return new ItemStackWrapper(stack.getItem(), stack.stackSize, stack.getItemDamage()); return new ItemStackWrapper(stack.getItem(), stack.stackSize, stack.getItemDamage());
} }