Fixes the auto crafting table, as it broke a bit with the forge update.

This commit is contained in:
modmuss50 2017-06-26 22:30:13 +01:00
parent f2c753cf1d
commit ac7a4246f6
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
3 changed files with 8 additions and 5 deletions

View file

@ -331,7 +331,7 @@ public class TileAutoCraftingTable extends TilePowerAcceptor implements IContain
return -1;
}
List<Integer> possibleSlots = new ArrayList<>();
for (int i = 0; i < 9; i++) {
for (int i = 0; i < recipe.getIngredients().size(); i++) {
ItemStack stackInSlot = inventory.getStackInSlot(i);
Ingredient ingredient = recipe.getIngredients().get(i);
if (ingredient != Ingredient.EMPTY && ingredient.apply(stack)) {