Fix Ex Nihilo recipe handlers

This commit is contained in:
Wilhelm Schuster committed 2023-07-08 17:21:08 +02:00
1 parent 69c8a653e3
commit e294abd0a7
2 files changed
+4 -4

No files matched your search

@@ -472,9 +472,9 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
@Override
public List<String> handleItemTooltip(GuiContainer gui, ItemStack stack, int mousex, int mousey,
List<String> 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;
}