mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-12 08:41:00 -05:00
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:
parent
7321e8f0d7
commit
befbfbf0ed
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue