From d90a667f689cbdd3842cab5007f3fbeedd0ac668 Mon Sep 17 00:00:00 2001 From: slprime <31038811+slprime@users.noreply.github.com> Date: Sun, 19 Oct 2025 21:33:46 +0300 Subject: [PATCH] Fix Bookmarks Chain Tooltip Height (#773) --- .../nei/recipe/chain/RecipeChainTooltipLineHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/codechicken/nei/recipe/chain/RecipeChainTooltipLineHandler.java b/src/main/java/codechicken/nei/recipe/chain/RecipeChainTooltipLineHandler.java index beee09fa..6d33dc3b 100644 --- a/src/main/java/codechicken/nei/recipe/chain/RecipeChainTooltipLineHandler.java +++ b/src/main/java/codechicken/nei/recipe/chain/RecipeChainTooltipLineHandler.java @@ -208,6 +208,8 @@ public class RecipeChainTooltipLineHandler implements ITooltipLineHandler { this.available.setLabelColor(EnumChatFormatting.GREEN); } + this.size.height = this.size.width = 0; + if (!this.inputs.isEmpty() || !this.outputs.isEmpty() || !this.remainder.isEmpty() || !this.available.isEmpty()) { @@ -225,8 +227,6 @@ public class RecipeChainTooltipLineHandler implements ITooltipLineHandler { this.size.height += this.inputs.getSize().height + this.outputs.getSize().height + this.remainder.getSize().height + this.available.getSize().height; - } else { - this.size.height = this.size.width = 0; } }