Skip to content

Commit

Permalink
Fix #573 Crash on middle clicking an inventory when JEI is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Nov 4, 2016
1 parent e324f05 commit 5be19a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/mezz/jei/GuiEventHandler.java
Expand Up @@ -2,7 +2,6 @@

import javax.annotation.Nullable;

import mezz.jei.api.ingredients.IIngredientRegistry;
import mezz.jei.config.Config;
import mezz.jei.gui.ItemListOverlay;
import mezz.jei.gui.ItemListOverlayInternal;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/mezz/jei/input/InputHandler.java
Expand Up @@ -47,7 +47,9 @@ public InputHandler(JeiRuntime runtime, @Nullable ItemListOverlayInternal itemLi
this.mouseHelper = new MouseHelper();

showsRecipeFocuses.add(recipesGui);
showsRecipeFocuses.add(itemListOverlayInternal);
if (itemListOverlayInternal != null) {
showsRecipeFocuses.add(itemListOverlayInternal);
}
showsRecipeFocuses.add(new GuiContainerWrapper());
}

Expand Down

0 comments on commit 5be19a3

Please sign in to comment.