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; } }