mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-24 05:44:37 +00:00
feat: support forestry
This commit is contained in:
1 parent
f141891b3e
commit
9b36a0666b
11 files changed
+246
-20
No files matched your search
@@ -13,8 +13,7 @@ import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
public class JecaOverlayHandler implements IOverlayHandler {
|
||||
@Override
|
||||
public void overlayRecipe(GuiContainer firstGui, IRecipeHandler recipe, int recipeIndex, boolean shift) {
|
||||
JustEnoughCalculation.logger.info("shift ? " + shift);
|
||||
if (shift && firstGui instanceof JecaGui) {
|
||||
if (firstGui instanceof JecaGui) {
|
||||
JecaGui gui = (JecaGui) firstGui;
|
||||
if (gui.root instanceof GuiRecipe) {
|
||||
((GuiRecipe) gui.root).transfer(recipe, recipeIndex);
|
||||
@@ -23,9 +22,6 @@ public class JecaOverlayHandler implements IOverlayHandler {
|
||||
JecaGui.displayGui(true, true, guiRecipe);
|
||||
guiRecipe.transfer(recipe, recipeIndex);
|
||||
}
|
||||
} else {
|
||||
System.out.println(firstGui.getClass().toString());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user