also check all items have been inserted before removing a crafting task fixes #2796 (#2797)

This commit is contained in:
Darkere
2021-01-02 11:16:04 +01:00
committed by GitHub
parent 2258a8a5c5
commit c2e543c8fa

View File

@@ -68,12 +68,10 @@ public class ProcessingNode extends Node {
@Override
public void update(INetwork network, int ticks, NodeList nodes, IStorageDisk<ItemStack> internalStorage, IStorageDisk<FluidStack> internalFluidStorage, NodeListener listener) {
if (state == ProcessingState.PROCESSED) {
listener.onAllDone(this);
return;
}
if (getQuantity() <= 0) {
if (state == ProcessingState.PROCESSED) {
listener.onAllDone(this);
}
return;
}