From de75b95893fb7707d1807fc96164d389a619e607 Mon Sep 17 00:00:00 2001 From: Martin Robertz Date: Wed, 5 Jul 2023 19:14:03 +0200 Subject: [PATCH] derp --- src/main/java/codechicken/nei/recipe/GuiRecipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/codechicken/nei/recipe/GuiRecipe.java b/src/main/java/codechicken/nei/recipe/GuiRecipe.java index 99553016..0d76c19a 100644 --- a/src/main/java/codechicken/nei/recipe/GuiRecipe.java +++ b/src/main/java/codechicken/nei/recipe/GuiRecipe.java @@ -788,7 +788,7 @@ public abstract class GuiRecipe extends GuiContainer i // reduce the vertical shift here to 16px instead of 32px. return new Point( 5, - (isHeightHackApplied ? 16 : 32) - (limitToOneRecipe ? 25 : 0) + yShift + ((recipe % getRecipesPerPage()) * handlerInfo.getHeight())); return new Point(5, 32 + yShift + ((recipe % getRecipesPerPage()) * handlerInfo.getHeight())); + (isHeightHackApplied ? 16 : 32) - (limitToOneRecipe ? 25 : 0) + yShift + ((recipe % getRecipesPerPage()) * handlerInfo.getHeight())); } public abstract ArrayList getCurrentRecipeHandlers();