Skip to content

Commit

Permalink
Fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamesuta committed Jan 4, 2019
1 parent 4804460 commit a8649d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public GuiHandler(final ICompat compat) {

private boolean isFirstOpen = true;

private boolean isMainMenu(final GuiScreen screen) {
return screen instanceof GuiMainMenu||StringUtils.equals("lumien.custommainmenu.gui.GuiCustom", screen.getClass().getName());
private boolean isMainMenu(final @Nullable GuiScreen screen) {
return screen instanceof GuiMainMenu||screen!=null&&StringUtils.equals("lumien.custommainmenu.gui.GuiCustom", screen.getClass().getName());
}

@CoreEvent
Expand Down

0 comments on commit a8649d4

Please sign in to comment.