Skip to content

Commit 151b0c0

Browse files
authored
fix multiblock auto-voiding with no output bus or hatch (GregTechCEu#1240)
1 parent 2f7b1a9 commit 151b0c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/gregtech/api/capability/impl/AbstractRecipeLogic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,13 @@ protected boolean setupAndConsumeRecipeInputs(Recipe recipe, IItemHandlerModifia
440440

441441
// We have already trimmed outputs and chanced outputs at this time
442442
// Attempt to merge all outputs + chanced outputs into the output bus, to prevent voiding chanced outputs
443-
if (!metaTileEntity.canVoidRecipeItemOutputs() && exportInventory.getSlots() > 0 && !GTTransferUtils.addItemsToItemHandler(exportInventory, true, recipe.getAllItemOutputs())) {
443+
if (!metaTileEntity.canVoidRecipeItemOutputs() && !GTTransferUtils.addItemsToItemHandler(exportInventory, true, recipe.getAllItemOutputs())) {
444444
this.isOutputsFull = true;
445445
return false;
446446
}
447447

448448
// We have already trimmed fluid outputs at this time
449-
if (!metaTileEntity.canVoidRecipeFluidOutputs() && exportFluids.getTanks() > 0 && !GTTransferUtils.addFluidsToFluidHandler(exportFluids, true, recipe.getFluidOutputs())) {
449+
if (!metaTileEntity.canVoidRecipeFluidOutputs() && !GTTransferUtils.addFluidsToFluidHandler(exportFluids, true, recipe.getFluidOutputs())) {
450450
this.isOutputsFull = true;
451451
return false;
452452
}

0 commit comments

Comments
 (0)