Groups no longer derp out when a single option is missing.
This commit is contained in:
@@ -65,7 +65,16 @@ public class GroupIngredient implements IIngredient
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
for (IIngredient i : ingredients)
|
for (IIngredient i : ingredients)
|
||||||
out.addAll( Arrays.asList( i.getItemStackSet() ) );
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
out.addAll( Arrays.asList( i.getItemStackSet() ) );
|
||||||
|
}
|
||||||
|
catch (MissingIngredientError mir)
|
||||||
|
{
|
||||||
|
// oh well this is a group!
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user