mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-14 19:25:13 -05:00
mark recipe context ingredient replacement as nullable
This commit is contained in:
parent
1ad5fda88f
commit
7f941373d9
2 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ public interface RecipeContext {
|
|||
@Nullable
|
||||
UnifyTag<Item> getPreferredTagForItem(@Nullable ResourceLocation item);
|
||||
|
||||
@Nullable
|
||||
JsonElement createIngredientReplacement(@Nullable JsonElement element);
|
||||
|
||||
@Nullable
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue