fix autocrafting
This commit is contained in:
@@ -104,8 +104,8 @@ public class ProcessingNode extends Node {
|
||||
allLocked = false;
|
||||
}
|
||||
|
||||
if ((!singleItemSetToRequire.isEmpty() && container.hasConnectedInventory()) ||
|
||||
(!singleFluidSetToRequire.isEmpty() && container.hasConnectedFluidInventory())) {
|
||||
if ((!singleItemSetToRequire.isEmpty() && !container.hasConnectedInventory()) ||
|
||||
(!singleFluidSetToRequire.isEmpty() && !container.hasConnectedFluidInventory())) {
|
||||
if (allMissingMachine) {
|
||||
this.state = ProcessingState.MACHINE_NONE;
|
||||
}
|
||||
|
@@ -478,14 +478,15 @@ public class CrafterNetworkNode extends NetworkNode implements ICraftingPatternC
|
||||
public boolean insertItemsIntoInventory(Collection<StackListEntry<ItemStack>> toInsert, Action action) {
|
||||
IItemHandler dest = getConnectedInventory();
|
||||
|
||||
if (dest == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (toInsert.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (dest == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Deque<StackListEntry<ItemStack>> stacks = new ArrayDeque<>(toInsert);
|
||||
|
||||
StackListEntry<ItemStack> currentEntry = stacks.poll();
|
||||
@@ -534,6 +535,10 @@ public class CrafterNetworkNode extends NetworkNode implements ICraftingPatternC
|
||||
public boolean insertFluidsIntoInventory(Collection<StackListEntry<FluidStack>> toInsert, Action action) {
|
||||
IFluidHandler dest = getConnectedFluidInventory();
|
||||
|
||||
if (toInsert.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (dest == null) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user