From 036a488ef519d7754a9ff1e44ca1f58aecfd6128 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Mon, 13 May 2024 06:16:45 -0700 Subject: [PATCH] fix creating complex recipes that have air results Fixes #10715 --- patches/api/Improve-Recipe-validation.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/api/Improve-Recipe-validation.patch b/patches/api/Improve-Recipe-validation.patch index 771c852bed..9f4b215336 100644 --- a/patches/api/Improve-Recipe-validation.patch +++ b/patches/api/Improve-Recipe-validation.patch @@ -177,7 +177,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 */ @Deprecated public SmithingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice base, @NotNull RecipeChoice addition, boolean copyDataComponents) { -+ com.google.common.base.Preconditions.checkArgument(!result.isEmpty(), "Recipe cannot have an empty result."); // Paper ++ com.google.common.base.Preconditions.checkArgument(!result.isEmpty() || this instanceof ComplexRecipe, "Recipe cannot have an empty result."); // Paper this.copyDataComponents = copyDataComponents; // Paper end this.key = key;