From 9203eddcdb94aa2f7cfaab723eb9566690fd4c45 Mon Sep 17 00:00:00 2001 From: Martin Robertz Date: Fri, 7 Jul 2023 20:49:54 +0200 Subject: [PATCH] spotless --- src/main/java/codechicken/nei/recipe/GuiRecipe.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/codechicken/nei/recipe/GuiRecipe.java b/src/main/java/codechicken/nei/recipe/GuiRecipe.java index 0d76c19a..768e3a49 100644 --- a/src/main/java/codechicken/nei/recipe/GuiRecipe.java +++ b/src/main/java/codechicken/nei/recipe/GuiRecipe.java @@ -783,12 +783,14 @@ public abstract class GuiRecipe extends GuiContainer i } public Point getRecipePosition(int recipe) { -// Legacy recipe handlers using the height hack might use getRecipePosition in combination with guiTop/height to + // Legacy recipe handlers using the height hack might use getRecipePosition in combination with guiTop/height to // position certain elements like tooltips. Since guiTop is moved down by 16px during height hacking, we need to // 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())); + (isHeightHackApplied ? 16 : 32) - (limitToOneRecipe ? 25 : 0) + + yShift + + ((recipe % getRecipesPerPage()) * handlerInfo.getHeight())); } public abstract ArrayList getCurrentRecipeHandlers();