diff --git a/src/main/java/codechicken/nei/recipe/GuiRecipe.java b/src/main/java/codechicken/nei/recipe/GuiRecipe.java index 3fdda848..f3d1c144 100644 --- a/src/main/java/codechicken/nei/recipe/GuiRecipe.java +++ b/src/main/java/codechicken/nei/recipe/GuiRecipe.java @@ -468,9 +468,9 @@ public abstract class GuiRecipe extends GuiContainer i @Override public List handleItemTooltip(GuiContainer gui, ItemStack stack, int mousex, int mousey, List currenttip) { - // Height hacking is probably not needed as it doesn't look like any mods check mouse - // position for this method. - for (int i : getRecipeIndices()) currenttip = handler.handleItemTooltip(this, stack, currenttip, i); + try (HeightHack heightHack = new HeightHack()) { + for (int i : getRecipeIndices()) currenttip = handler.handleItemTooltip(this, stack, currenttip, i); + } return currenttip; } diff --git a/src/main/resources/assets/nei/cfg/heighthackhandlers.cfg b/src/main/resources/assets/nei/cfg/heighthackhandlers.cfg index 7540f1e8..ea656d9c 100644 --- a/src/main/resources/assets/nei/cfg/heighthackhandlers.cfg +++ b/src/main/resources/assets/nei/cfg/heighthackhandlers.cfg @@ -10,3 +10,4 @@ mariculture.plugins.nei.* redgear.brewcraft.plugins.nei.* tconstruct.plugins.nei.* WayofTime.alchemicalWizardry.client.nei.* +exnihilo.compatibility.nei.* \ No newline at end of file