Skip to content

Commit

Permalink
Fix recipe tooltip crash with BetterQuesting
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune committed Jul 28, 2023
1 parent bbce81c commit f18372b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/codechicken/nei/recipe/GuiRecipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ public void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {
for (int i = page * recipesPerPage; i < handler.numRecipes() && i < (page + 1) * recipesPerPage; i++) {
handler.drawForeground(i);
if (drawItemPresence && (isMouseOverOverlayButton(i - page * recipesPerPage) || limitToOneRecipe)
&& firstGui != null
&& firstGui.inventorySlots != null) {
List<PositionedStack> ingredients = handler.getIngredientStacks(i);
if (itemPresenceCacheRecipe != i || itemPresenceCacheSlots == null
Expand Down

0 comments on commit f18372b

Please sign in to comment.