aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-04-17 15:53:35 +0800
committershedaniel <daniel@shedaniel.me>2020-04-17 15:53:55 +0800
commit8fd2f6ee7494b3623431319e4cc8056c4d6096d3 (patch)
treecfcaf77fc1d69efe324881c1b12fc662f59a3871 /src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java
parent4cf2e712adbdc6f75be71e0d63ecced8042cee26 (diff)
downloadRoughlyEnoughItems-8fd2f6ee7494b3623431319e4cc8056c4d6096d3.tar.gz
RoughlyEnoughItems-8fd2f6ee7494b3623431319e4cc8056c4d6096d3.tar.bz2
RoughlyEnoughItems-8fd2f6ee7494b3623431319e4cc8056c4d6096d3.zip
No one have saw this coming
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java5
1 files changed, 2 insertions, 3 deletions
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();
}