mark recipe context ingredient replacement as nullable

This commit is contained in:
Relentless 2023-03-25 19:14:39 +01:00
parent 1ad5fda88f
commit 7f941373d9
No known key found for this signature in database
GPG key ID: 50C5FD225130D790
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@ public interface RecipeContext {
@Nullable
UnifyTag<Item> getPreferredTagForItem(@Nullable ResourceLocation item);
@Nullable
JsonElement createIngredientReplacement(@Nullable JsonElement element);
@Nullable

View file

@ -57,8 +57,8 @@ public class RecipeContextImpl implements RecipeContext {
return replacementMap.getPreferredTagForItem(item);
}
@Override
@Nullable
@Override
public JsonElement createIngredientReplacement(@Nullable JsonElement element) {
if (element == null) {
return null;