From e244d9f3d5f6b0e607fd99370972a4b26ef5478f Mon Sep 17 00:00:00 2001 From: Raoul Van den Berge Date: Wed, 14 Sep 2016 18:59:49 +0200 Subject: [PATCH] Fixed processing patterns not handling item insertion sometimes, fixes #339 --- CHANGELOG.md | 3 +++ src/main/java/refinedstorage/tile/TileController.java | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9709583f..09891a011 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Refined Storage Changelog +### 1.0.2 +- Fixed processing patterns not handling item insertion sometimes (raoulvdberge) + ### 1.0.1 - Fixed advanced tooltips showing in Grid when not configured to do so (raoulvdberge) - Added "autocrafting mode" in Detector, to check if an item is being crafted. If no item is specified, it'll emit a signal if anything is crafting (raoulvdberge) diff --git a/src/main/java/refinedstorage/tile/TileController.java b/src/main/java/refinedstorage/tile/TileController.java index 77aca3aee..d5dd79973 100755 --- a/src/main/java/refinedstorage/tile/TileController.java +++ b/src/main/java/refinedstorage/tile/TileController.java @@ -569,10 +569,8 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR } private boolean checkProcessing(ItemStack stack, ICraftingTask task) { - if (task.getChild() instanceof CraftingTaskProcessing) { - if (checkProcessing(stack, task.getChild())) { - return true; - } + if (task.getChild() != null) { + return checkProcessing(stack, task.getChild()); } return task instanceof CraftingTaskProcessing && ((CraftingTaskProcessing) task).onInserted(stack);