diff options
| author | shedaniel <daniel@shedaniel.me> | 2019-12-12 22:43:27 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2019-12-12 22:43:55 +0800 |
| commit | 977704a0aa62b79a130d535dec351b5d028e3590 (patch) | |
| tree | a592b7ef356e013bb88adbf58bba937b94551b8a /src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java | |
| parent | 989e45491c6e53695e1e20b0d790d8fb2fbf82ae (diff) | |
| download | RoughlyEnoughItems-977704a0aa62b79a130d535dec351b5d028e3590.tar.gz RoughlyEnoughItems-977704a0aa62b79a130d535dec351b5d028e3590.tar.bz2 RoughlyEnoughItems-977704a0aa62b79a130d535dec351b5d028e3590.zip | |
3.2.20
Fix #204
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.java | 3 |
1 files changed, 3 insertions, 0 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 d6eeb40f7..83f1b861c 100644 --- a/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java +++ b/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultRecipeBookHandler.java @@ -7,6 +7,7 @@ package me.shedaniel.rei.plugin.autocrafting; 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; @@ -23,6 +24,8 @@ public class DefaultRecipeBookHandler implements AutoTransferHandler { @SuppressWarnings("deprecation") @Override public Result handle(Context context) { + if (context.getRecipe() instanceof TransferRecipeDisplay && DefaultCategoryHandler.canUseMovePackets()) + return Result.createNotApplicable(); RecipeDisplay display = context.getRecipe(); if (!(context.getContainer() instanceof CraftingContainer)) return Result.createNotApplicable(); |
