From 2d5c6e7ea4b75052bb11ab9dd5258e8a02cf84ed Mon Sep 17 00:00:00 2001 From: Wilhelm Schuster Date: Sat, 1 Jul 2023 20:28:01 +0200 Subject: [PATCH] Fix Ex Nihilo recipe handlers --- src/main/java/codechicken/nei/recipe/GuiRecipe.java | 6 +++--- src/main/resources/assets/nei/cfg/heighthackhandlers.cfg | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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