Skip to content

Commit

Permalink
Fix handling clicks in modded gui exclusion areas
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Jul 2, 2018
1 parent 4e2db7d commit 744573a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/mezz/jei/gui/overlay/IngredientGridAll.java
Expand Up @@ -102,8 +102,9 @@ public boolean isMouseOver(int mouseX, int mouseY) {

@Override
public boolean handleMouseClicked(int mouseX, int mouseY, int mouseButton) {
return this.ingredientGrid.handleMouseClicked(mouseX, mouseY) ||
this.navigation.handleMouseClickedButtons(mouseX, mouseY);
return !MathUtil.contains(guiExclusionAreas, mouseX, mouseY) &&
(this.ingredientGrid.handleMouseClicked(mouseX, mouseY) ||
this.navigation.handleMouseClickedButtons(mouseX, mouseY));
}

@Override
Expand Down

0 comments on commit 744573a

Please sign in to comment.