diff options
author | repo_alt <wvk17@yandex.ru> | 2021-11-19 14:16:06 +0300 |
---|---|---|
committer | repo_alt <wvk17@yandex.ru> | 2021-11-19 14:16:06 +0300 |
commit | f30f8f115576ce16c12cada43745f07a574e0684 (patch) | |
tree | a7ec8563280da1867f060d6810c0eccd36ddc5fe /src | |
parent | 8762f3ff2e4208cb1b2ebf7f604575cfd24f7ecb (diff) | |
download | GT5-Unofficial-f30f8f115576ce16c12cada43745f07a574e0684.tar.gz GT5-Unofficial-f30f8f115576ce16c12cada43745f07a574e0684.tar.bz2 GT5-Unofficial-f30f8f115576ce16c12cada43745f07a574e0684.zip |
Fluid lost when transporting fluid from GregTech pipe to EnderIO Conduit
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/4161
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Fluid.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Fluid.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Fluid.java index 8479477d12..8cce529050 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Fluid.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaPipeEntity_Fluid.java @@ -338,6 +338,7 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { // Tank, From, Amount to receive List<MutableTriple<IFluidHandler, ForgeDirection, Integer>> tTanks = new ArrayList<>(); + int amount = tFluid.amount; for (byte aSide, i = 0, j = (byte) aBaseMetaTileEntity.getRandomNumber(6); i < 6; i++) { // Get a list of tanks accepting fluids, and what side they're on @@ -352,6 +353,7 @@ public class GT_MetaPipeEntity_Fluid extends MetaPipeEntity { if (tTank.fill(ForgeDirection.getOrientation(tSide), tFluid, false) > 0) { tTanks.add(new MutableTriple<>(tTank, ForgeDirection.getOrientation(tSide), 0)); } + tFluid.amount = amount; // Because some mods do actually modify input fluid stack } } |