diff options
| author | shedaniel <daniel@shedaniel.me> | 2019-12-08 18:46:17 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2019-12-08 18:46:17 +0800 |
| commit | 1b055888a74e68f5a287068428dc80196558fc98 (patch) | |
| tree | 9a9f8707fb758966140dd68a56ef37b6598a4549 /src/main/java/me/shedaniel/rei/plugin/autocrafting | |
| parent | 237fb0b83944fc2fd4960bdc8a8b518a8ca9aaaf (diff) | |
| download | RoughlyEnoughItems-1b055888a74e68f5a287068428dc80196558fc98.tar.gz RoughlyEnoughItems-1b055888a74e68f5a287068428dc80196558fc98.tar.bz2 RoughlyEnoughItems-1b055888a74e68f5a287068428dc80196558fc98.zip | |
Finally fixed the NPE
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/autocrafting')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultCategoryHandler.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultCategoryHandler.java b/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultCategoryHandler.java index 11e32fdef..78ca518f5 100644 --- a/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultCategoryHandler.java +++ b/src/main/java/me/shedaniel/rei/plugin/autocrafting/DefaultCategoryHandler.java @@ -35,8 +35,6 @@ public class DefaultCategoryHandler implements AutoTransferHandler { if (!(context.getRecipe() instanceof TransferRecipeDisplay)) return Result.createNotApplicable(); TransferRecipeDisplay recipe = (TransferRecipeDisplay) context.getRecipe(); - if (!ContainerInfoHandler.isCategoryHandled(recipe.getRecipeCategory())) - return Result.createNotApplicable(); AbstractContainerScreen<?> containerScreen = context.getContainerScreen(); Container container = containerScreen.getContainer(); ContainerInfo containerInfo = ContainerInfoHandler.getContainerInfo(recipe.getRecipeCategory(), container.getClass()); |
