From 2961a0449da999a5b8198bd043b6bad26879667d Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 27 Jan 2022 09:51:57 +0800 Subject: Close #724 - Sort displays so craftable ones are on the top - Add Ctrl+Click shortcut to move items immediately - Improve TransferHandler API to allow renderers even when it is "successful" --- .../rei/plugin/autocrafting/recipebook/DefaultRecipeBookHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'default-plugin/src') diff --git a/default-plugin/src/main/java/me/shedaniel/rei/plugin/autocrafting/recipebook/DefaultRecipeBookHandler.java b/default-plugin/src/main/java/me/shedaniel/rei/plugin/autocrafting/recipebook/DefaultRecipeBookHandler.java index c85e38bb6..f6d23677c 100644 --- a/default-plugin/src/main/java/me/shedaniel/rei/plugin/autocrafting/recipebook/DefaultRecipeBookHandler.java +++ b/default-plugin/src/main/java/me/shedaniel/rei/plugin/autocrafting/recipebook/DefaultRecipeBookHandler.java @@ -72,7 +72,7 @@ public class DefaultRecipeBookHandler implements TransferHandler { context.getMinecraft().setScreen(context.getContainerScreen()); if (context.getContainerScreen() instanceof RecipeUpdateListener) ((RecipeUpdateListener) context.getContainerScreen()).getRecipeBookComponent().ghostRecipe.clear(); - context.getMinecraft().gameMode.handlePlaceRecipe(container.containerId, recipe, Screen.hasShiftDown()); + context.getMinecraft().gameMode.handlePlaceRecipe(container.containerId, recipe, context.isStackedCrafting()); return Result.createSuccessful(); } } else if (display instanceof DefaultCookingDisplay defaultDisplay) { @@ -85,7 +85,7 @@ public class DefaultRecipeBookHandler implements TransferHandler { context.getMinecraft().setScreen(context.getContainerScreen()); if (context.getContainerScreen() instanceof RecipeUpdateListener) ((RecipeUpdateListener) context.getContainerScreen()).getRecipeBookComponent().ghostRecipe.clear(); - context.getMinecraft().gameMode.handlePlaceRecipe(container.containerId, recipe, Screen.hasShiftDown()); + context.getMinecraft().gameMode.handlePlaceRecipe(container.containerId, recipe, context.isStackedCrafting()); return Result.createSuccessful(); } } -- cgit