fix fluid terminal bug

This commit is contained in:
asdflj committed 2023-01-11 18:09:55 +08:00
1 parent 80f07a4dc6
commit 606bac83f4
1 file changed
+6 -2
@@ -448,9 +448,13 @@ public class FCBaseFluidMonitorContain extends AEBaseContainer
}
if (slotIndex == -1) out.stackSize = fluidContainer.stackSize - out.stackSize;
} else {
out.stackSize = (int) (fluidContainer.stackSize - (aeFluidStack.getStackSize() / drainStack.left));
if (slotIndex == -1) {
out.stackSize = fluidContainer.stackSize;
} else {
out.stackSize =
(int) (fluidContainer.stackSize - (aeFluidStack.getStackSize() / drainStack.left));
}
this.dropItem(drainStack.right, fluidContainer.stackSize); // drop empty item
if (slotIndex == -1) out.stackSize++;
}
} else {
continue;