From 8fd2f6ee7494b3623431319e4cc8056c4d6096d3 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Fri, 17 Apr 2020 15:53:35 +0800 Subject: No one have saw this coming Signed-off-by: shedaniel --- .../shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java') diff --git a/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java b/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java index ea11d7795..ae939e5bc 100644 --- a/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java +++ b/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java @@ -27,7 +27,6 @@ import me.shedaniel.rei.api.AutoTransferHandler; import me.shedaniel.rei.api.RecipeDisplay; import me.shedaniel.rei.api.TransferRecipeDisplay; import me.shedaniel.rei.impl.ScreenHelper; -import me.shedaniel.rei.listeners.RecipeBookGuiHooks; import me.shedaniel.rei.plugin.cooking.DefaultCookingDisplay; import me.shedaniel.rei.plugin.crafting.DefaultCraftingDisplay; import net.minecraft.client.gui.screen.Screen; @@ -69,7 +68,7 @@ public class DefaultRecipeBookHandler implements AutoTransferHandler { return Result.createSuccessful(); context.getMinecraft().openScreen(context.getHandledScreen()); if (context.getHandledScreen() instanceof RecipeBookProvider) - ((RecipeBookGuiHooks) ((RecipeBookProvider) context.getHandledScreen()).getRecipeBookWidget()).rei_getGhostSlots().reset(); + ((RecipeBookProvider) context.getHandledScreen()).getRecipeBookWidget().ghostSlots.reset(); context.getMinecraft().interactionManager.clickRecipe(container.syncId, recipe, Screen.hasShiftDown()); ScreenHelper.getLastOverlay().init(); } @@ -83,7 +82,7 @@ public class DefaultRecipeBookHandler implements AutoTransferHandler { return Result.createSuccessful(); context.getMinecraft().openScreen(context.getHandledScreen()); if (context.getHandledScreen() instanceof RecipeBookProvider) - ((RecipeBookGuiHooks) ((RecipeBookProvider) context.getHandledScreen()).getRecipeBookWidget()).rei_getGhostSlots().reset(); + ((RecipeBookProvider) context.getHandledScreen()).getRecipeBookWidget().ghostSlots.reset(); context.getMinecraft().interactionManager.clickRecipe(container.syncId, recipe, Screen.hasShiftDown()); ScreenHelper.getLastOverlay().init(); } -- cgit