Fixed invalid slot usage in tuning driver recipe handler

This commit is contained in:
Unknown 2019-01-02 19:11:47 +01:00 committed by unknown
parent 46f8ce5aba
commit 93d2d0e417

View file

@ -95,7 +95,7 @@ public class RecipeTuningDriver implements IRecipe {
boolean isConsumableFound = false;
int dye = 0;
int countDyesFound = 0;
for (int indexSlot = 0; indexSlot <= inventoryCrafting.getSizeInventory(); indexSlot++) {
for (int indexSlot = 0; indexSlot < inventoryCrafting.getSizeInventory(); indexSlot++) {
final ItemStack itemStackSlot = inventoryCrafting.getStackInSlot(indexSlot);
//noinspection StatementWithEmptyBody