diff options
author | Jake Potrebic <[email protected]> | 2024-05-13 06:16:45 -0700 |
---|---|---|
committer | Jake Potrebic <[email protected]> | 2024-05-13 06:16:52 -0700 |
commit | 218d33ccb16a423c19c2040751a846c0314654ac (patch) | |
tree | b08c268027ae9cacbc55f7e45976a34fe3d0322f | |
parent | 0688f212f534f7ef8d9146b595f38e4c2b2eba42 (diff) | |
download | Paper-218d33ccb16a423c19c2040751a846c0314654ac.tar.gz Paper-218d33ccb16a423c19c2040751a846c0314654ac.zip |
fix creating complex recipes that have air results
Fixes #10715
-rw-r--r-- | patches/api/0479-Improve-Recipe-validation.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/api/0479-Improve-Recipe-validation.patch b/patches/api/0479-Improve-Recipe-validation.patch index 47d68fde83..1989238381 100644 --- a/patches/api/0479-Improve-Recipe-validation.patch +++ b/patches/api/0479-Improve-Recipe-validation.patch @@ -170,14 +170,14 @@ index beb798482479c58a8628c314b510ab6349576ce8..6a8195ca224790e3130ec9923188e7b5 ingredients.add(new RecipeChoice.ExactChoice(item)); } diff --git a/src/main/java/org/bukkit/inventory/SmithingRecipe.java b/src/main/java/org/bukkit/inventory/SmithingRecipe.java -index 1ef9a715a2736e88a16083c6873803a8bd6bcf29..99e40588c10141391762f37b5a326f8df06e5276 100644 +index 1ef9a715a2736e88a16083c6873803a8bd6bcf29..a8f451dc1d8d49c2080c3ed3d8348020c3d470cf 100644 --- a/src/main/java/org/bukkit/inventory/SmithingRecipe.java +++ b/src/main/java/org/bukkit/inventory/SmithingRecipe.java @@ -44,12 +44,13 @@ public class SmithingRecipe implements Recipe, Keyed { */ @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; |