From 822fbf83ee7f00a2f4f59dfba35c8a5bea410802 Mon Sep 17 00:00:00 2001 From: Raoul Van den Berge Date: Thu, 30 Jun 2016 16:48:23 +0200 Subject: [PATCH] Fixed patterns getting removed --- .../java/refinedstorage/apiimpl/storage/GroupedStorage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/refinedstorage/apiimpl/storage/GroupedStorage.java b/src/main/java/refinedstorage/apiimpl/storage/GroupedStorage.java index b49789cfc..cf318e332 100755 --- a/src/main/java/refinedstorage/apiimpl/storage/GroupedStorage.java +++ b/src/main/java/refinedstorage/apiimpl/storage/GroupedStorage.java @@ -66,7 +66,9 @@ public class GroupedStorage implements IGroupedStorage { otherStack.stackSize -= stack.stackSize; if (otherStack.stackSize == 0) { - stacks.remove(otherStack.getItem(), otherStack); + if (RefinedStorageUtils.getPatternFromNetwork(network, otherStack) == null) { + stacks.remove(otherStack.getItem(), otherStack); + } } network.sendStorageToClient();