From befbfbf0ed09f3748359fa75fc2ddaf9c6a7353a Mon Sep 17 00:00:00 2001 From: DoctorMacc Date: Sun, 8 Nov 2020 18:18:12 -0500 Subject: [PATCH] Allow recipe data to be null Using datapacks, this can end up being null. Example: https://www.planetminecraft.com/data-pack/true-survival-a-hardcore-minecraft-experience/ (used to set recipes as doing nothing) --- .../mc/protocol/data/game/recipe/data/ShapedRecipeData.java | 2 +- .../mc/protocol/data/game/recipe/data/ShapelessRecipeData.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/ShapedRecipeData.java b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/ShapedRecipeData.java index 4f9ce6da..a4935f61 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/ShapedRecipeData.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/ShapedRecipeData.java @@ -13,5 +13,5 @@ public class ShapedRecipeData implements RecipeData { private final int height; private final @NonNull String group; private final @NonNull Ingredient[] ingredients; - private final @NonNull ItemStack result; + private final ItemStack result; } diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/ShapelessRecipeData.java b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/ShapelessRecipeData.java index 6df2c936..8448ff08 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/ShapelessRecipeData.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/ShapelessRecipeData.java @@ -11,5 +11,5 @@ import lombok.NonNull; public class ShapelessRecipeData implements RecipeData { private final @NonNull String group; private final @NonNull Ingredient[] ingredients; - private final @NonNull ItemStack result; + private final ItemStack result; }