Skip to content

Commit

Permalink
Close the recipe screen even if parent screen is null (#2298)
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Apr 11, 2021
1 parent bf73a11 commit 3cf55c2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/mezz/jei/gui/recipes/RecipesGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,8 @@ private void open() {
@Override
public void closeScreen() {
if (isOpen() && minecraft != null) {
if (parentScreen != null) {
minecraft.displayGuiScreen(parentScreen);
parentScreen = null;
}
minecraft.displayGuiScreen(parentScreen);
parentScreen = null;
logic.clearHistory();
return;
}
Expand Down

0 comments on commit 3cf55c2

Please sign in to comment.