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)
This commit is contained in:
DoctorMacc 2020-11-08 18:18:12 -05:00
parent 7321e8f0d7
commit befbfbf0ed
No known key found for this signature in database
GPG key ID: 6D6E7E059F186DB4
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}