Skip to content

Commit

Permalink
Fix crash when removing ingredients at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Aug 12, 2017
1 parent 79fb73d commit 078ce5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/mezz/jei/ingredients/IngredientFilter.java
Expand Up @@ -201,7 +201,9 @@ public void onEditModeToggleEvent(EditModeToggleEvent event) {

public void updateHidden() {
for (IIngredientListElement<?> element : elementList) {
updateHiddenState(element);
if (element != null) {
updateHiddenState(element);
}
}
}

Expand Down

0 comments on commit 078ce5e

Please sign in to comment.