diff options
author | Jason Mitchell <mitchej+github@gmail.com> | 2020-12-31 09:30:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 09:30:05 -0800 |
commit | 0ed11a6794e34ef4b104ff3a6ebc224d5efa80df (patch) | |
tree | 744a8d24726da1b06beb5f0490306ad0dde77a66 /src/main/java/gregtech/common/covers | |
parent | 23b550192c3b528dac9ef25c85da99611e00529f (diff) | |
parent | 116009659e461ac81f451406a5041a9b55f80a6f (diff) | |
download | GT5-Unofficial-0ed11a6794e34ef4b104ff3a6ebc224d5efa80df.tar.gz GT5-Unofficial-0ed11a6794e34ef4b104ff3a6ebc224d5efa80df.tar.bz2 GT5-Unofficial-0ed11a6794e34ef4b104ff3a6ebc224d5efa80df.zip |
Merge branch 'experimental' into long_distance_transfer
Diffstat (limited to 'src/main/java/gregtech/common/covers')
-rw-r--r-- | src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java b/src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java index 39c87669f1..f8784d570f 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java @@ -50,14 +50,7 @@ public class GT_Cover_FluidRegulator extends GT_CoverBehavior { tLiquid = tLiquid.copy(); tLiquid.amount = tTank2.fill(directionTo, tLiquid, false); if (tLiquid.amount > 0) { - if (aTileEntity.getUniversalEnergyCapacity() >= Math.min(1, tLiquid.amount / 10)) { - if (aTileEntity.isUniversalEnergyStored(Math.min(1, tLiquid.amount / 10))) { - aTileEntity.decreaseStoredEnergyUnits(Math.min(1, tLiquid.amount / 10), true); - tTank2.fill(directionTo, tTank1.drain(directionFrom, tLiquid.amount, true), true); - } - } else { - tTank2.fill(directionTo, tTank1.drain(directionFrom, tLiquid.amount, true), true); - } + tTank2.fill(directionTo, tTank1.drain(directionFrom, tLiquid.amount, true), true); } } } |