Fix crash

This commit is contained in:
Raoul Van den Berge
2016-05-04 20:15:10 +02:00
parent 460f75346b
commit 9fd1fc865b

View File

@@ -46,9 +46,12 @@ public class GridRecipeTransferHandler implements IRecipeTransferHandler {
NBTTagList tags = new NBTTagList();
for (ItemStack stack : possibleItems) {
for (int i = 0; i < possibleItems.size(); ++i) {
if (i >= 5) {
break; // max 5 possible items
}
NBTTagCompound tag = new NBTTagCompound();
stack.writeToNBT(tag);
possibleItems.get(i).writeToNBT(tag);
tags.appendTag(tag);
}