Merge pull request #55 from asdflj/master

fix fluid terminal bug
This commit is contained in:
Martin Robertz authored and GitHub committed 2023-01-11 16:25:38 +01:00
commit 669c83917f
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;