Fix recipe tooltip crash with BetterQuesting (#409)

* updateBuildScript

* Fix recipe tooltip crash with BetterQuesting
This commit is contained in:
miozune authored and GitHub committed 2023-07-28 13:20:45 +02:00
1 parent 8569431e1d
commit 4f23d21d37
5 files changed
+29 -45

No files matched your search

@@ -673,6 +673,7 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
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