Prevent shaped recipes with 1 ingredient from being used in autoShaped

fixes Creators-of-Create#6368
fixes TheCBProject/EnderStorage#222
fixes mezz/JustEnoughItems#3276
This commit is contained in:
attackeight 2024-05-15 16:31:07 -04:00
parent d66170c8fe
commit 224388b194

View file

@ -138,9 +138,7 @@ public enum AllRecipeTypes implements IRecipeTypeInfo {
RecipeSerializer<?> serializer = recipe.getSerializer();
if (serializer != null && AllTags.AllRecipeSerializerTags.AUTOMATION_IGNORE.matches(serializer))
return true;
return recipe.getId()
.getPath()
.endsWith("_manual_only");
return recipe.getId().getPath().endsWith("_manual_only") || recipe.getIngredients().size() == 1;
}
private static class Registers {