getAllIngredients() can contain nulls
This commit is contained in:
Salomão
2021-06-26 07:31:16 -03:00
parent 5a2c2d06d3
commit 6de48f8541
@@ -149,6 +149,10 @@ class RecipeTransferHandler<T extends Container> implements IRecipeTransferHandl
// prefer pure crystals. // prefer pure crystals.
for ( ItemStack stack : ingredient.getAllIngredients() ) for ( ItemStack stack : ingredient.getAllIngredients() )
{ {
if( stack == null )
{
continue;
}
if( Platform.isRecipePrioritized( stack ) ) if( Platform.isRecipePrioritized( stack ) )
{ {
list.add( 0, stack ); list.add( 0, stack );