Skip to content

Commit

Permalink
Fix #572 crash on reloading JEI
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Nov 4, 2016
1 parent da7207e commit e324f05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mezz/jei/ItemFilter.java
Expand Up @@ -27,8 +27,8 @@ public class ItemFilter {

private ImmutableList<IIngredientListElement> baseList;

public ItemFilter() {
this.baseList = IngredientBaseListFactory.create(true);
public ItemFilter(boolean showProgressBar) {
this.baseList = IngredientBaseListFactory.create(showProgressBar);
}

public void rebuild() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mezz/jei/JeiStarter.java
Expand Up @@ -52,7 +52,7 @@ public void start(List<IModPlugin> plugins, boolean showProgressBar) {
RecipeRegistry recipeRegistry = modRegistry.createRecipeRegistry(stackHelper, ingredientRegistry);
Log.info("Built recipe registry in {} ms", System.currentTimeMillis() - start_time);

ItemFilter itemFilter = new ItemFilter();
ItemFilter itemFilter = new ItemFilter(showProgressBar);

Log.info("Building runtime...");
start_time = System.currentTimeMillis();
Expand Down

0 comments on commit e324f05

Please sign in to comment.