Recipes can now have the same item in both the tools and the components section

Fix for #786.

Tools that are in the player's inventory are green, unless there aren't enough to be used as both tool and component, in which case they are yellow. If there is an alternative tool from the same set that a component can be used with, then the component is colored green, overriding the previous yellow coloring. The same applies in reverse to the tools (with minor changes). I think that's more intuitive for the end user; it would be odd if they could craft without having a green item in one of the sets of tools/components.