Fix null in will application

This commit is contained in:
Vincent Lee committed 2017-01-08 15:01:15 -06:00
1 parent 6ff9f5e510
commit e0b23930aa
1 file changed
+1 -1
@@ -53,7 +53,7 @@ public class AncientWillRecipe implements IRecipe {
for(int i = 0; i < var1.getSizeInventory(); i++) {
ItemStack stack = var1.getStackInSlot(i);
if(!stack.isEmpty()) {
if(stack.getItem() instanceof IAncientWillContainer && item == null)
if(stack.getItem() instanceof IAncientWillContainer && item.isEmpty())
item = stack;
else will = stack.getItemDamage();
}