Fix compound ingredient in shapeless recipes (#7537) Fixes #7530

This commit is contained in:
sciwhiz12 2020-12-29 05:03:48 +08:00 committed by GitHub
parent a1119cd77a
commit 74ca88b7be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,12 @@ public class CompoundIngredient extends Ingredient
}
}
@Override
public boolean hasNoMatchingItems()
{
return getMatchingStacks().length == 0;
}
public static class Serializer implements IIngredientSerializer<CompoundIngredient>
{
public static final Serializer INSTANCE = new Serializer();