fix export bus exporting too much fluid

This commit is contained in:
GlodBlock committed 2023-03-02 16:46:35 +08:00
1 parent b205d3f53f
commit 18f31ac3ef
1 file changed
+2 -1
@@ -137,8 +137,9 @@ public class PartFluidExportBus extends FCSharedFluidBus implements ICraftingReq
this.source);
}
int space = fh.fill(this.getSide().getOpposite(), toExtract.getFluidStack(), false);
toExtract.setStackSize(space);
final IAEFluidStack real = inv.extractItems(toExtract, Actionable.MODULATE, this.source);
if (real != null && isAllowed) {
int realInserted = fh.fill(this.getSide().getOpposite(), real.getFluidStack(), true);
if (realInserted < real.getStackSize()) {