Fixed patterns getting removed

This commit is contained in:
Raoul Van den Berge
2016-06-30 16:48:23 +02:00
parent 29f21a90fc
commit 822fbf83ee

View File

@@ -66,7 +66,9 @@ public class GroupedStorage implements IGroupedStorage {
otherStack.stackSize -= stack.stackSize; otherStack.stackSize -= stack.stackSize;
if (otherStack.stackSize == 0) { if (otherStack.stackSize == 0) {
stacks.remove(otherStack.getItem(), otherStack); if (RefinedStorageUtils.getPatternFromNetwork(network, otherStack) == null) {
stacks.remove(otherStack.getItem(), otherStack);
}
} }
network.sendStorageToClient(); network.sendStorageToClient();