Skip to content

Commit

Permalink
Add Nullable annotation to RecipeMap::getByName()
Browse files Browse the repository at this point in the history
IDE analysis assumes it won't return null otherwise, because methods
are marked Non-null by default.
  • Loading branch information
Exaxxion committed Jun 3, 2024
1 parent f193ca9 commit 8bafaac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/gregtech/api/recipes/RecipeMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public static List<RecipeMap<?>> getRecipeMaps() {
}

@ZenMethod
@Nullable
public static RecipeMap<?> getByName(String unlocalizedName) {
return RECIPE_MAPS.stream()
.filter(map -> map.unlocalizedName.equals(unlocalizedName))
Expand Down

0 comments on commit 8bafaac

Please sign in to comment.