Work around bug #1070

This commit is contained in:
raoulvdberge
2017-05-20 10:02:34 +02:00
parent 96c560db78
commit d98f35b439

View File

@@ -198,9 +198,11 @@ public class StackListItem implements IStackList<ItemStack> {
compare |= IComparer.COMPARE_DAMAGE; compare |= IComparer.COMPARE_DAMAGE;
} }
ItemStack actualInput = list.get(input, compare); ItemStack actualInput = list.get(input, compare);
ItemStack taken = ItemHandlerHelper.copyStackWithSize(actualInput, input.getCount()); if (actualInput != null) {
took[i] = taken; ItemStack taken = ItemHandlerHelper.copyStackWithSize(actualInput, input.getCount());
list.remove(taken, taken.getCount()); took[i] = taken;
list.remove(taken, taken.getCount());
}
} }
} }
return took; return took;