I am trying to make a simple crafting widget. The recipe for the craftable item is stored in an array as item name and quantity. For example, to make, let’s say, a sword; you would need 1 wood and 1 stone in your inventory. For some reason, the boolean only checks the required amount for the first element. So as long as I have at least 1 wood I can still craft the sword even though it requires 1 wood and 1 stone. However if i only have 1 stone and no wood I am not able to craft it. How would I check if all the elements in the array meet the requirement and not just the first element in the array?
Here is a picture of some of the blueprints. Thanks in advance and let me know if there is any more info I should provide.