Fixes mana lens dyeing, closing #1708

Fixes having extra items beyond a dye and a lens messing everything up
This commit is contained in:
Sam Quinn committed 2016-01-02 22:48:51 -06:00
1 parent 0f9bc9fc53
commit f9ce3676e1
1 file changed
+2 -1
@@ -44,6 +44,7 @@ public class LensDyeingRecipe implements IRecipe {
foundDye = true;
else return false;
}
else return false;//This means we have an additional item in the recipe after the lens and dye
}
}
@@ -60,7 +61,7 @@ public class LensDyeingRecipe implements IRecipe {
if(stack != null) {
if(stack.getItem() instanceof ILens && lens == null)
lens = stack;
else color = getStackColor(stack);
else color = getStackColor(stack);//We can assume if its not a lens its a dye because we checked it in matches()
}
}