Skip to content

Commit

Permalink
Fix recipe errors when there is a null ingredient in a display rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed May 24, 2018
1 parent bd49408 commit 499afdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
@@ -1,5 +1,5 @@
mcversion=1.12.2
forgeversion=14.23.3.2669
forgeversion=14.23.3.2702
mcp_mappings=snapshot_20180421
curse_project_id=238222

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mezz/jei/gui/ingredients/GuiIngredient.java
Expand Up @@ -125,7 +125,7 @@ private List<T> filterOutHidden(List<T> ingredients) {
IngredientFilter ingredientFilter = Internal.getIngredientFilter();
List<T> visible = new ArrayList<>();
for (T ingredient : ingredients) {
if (ingredientRegistry.isIngredientVisible(ingredient, ingredientFilter)) {
if (ingredient == null || ingredientRegistry.isIngredientVisible(ingredient, ingredientFilter)) {
visible.add(ingredient);
}
}
Expand Down

0 comments on commit 499afdf

Please sign in to comment.