aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/covers
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2020-12-29 17:52:41 +0100
committerGitHub <noreply@github.com>2020-12-29 17:52:41 +0100
commit8b66a49b81771115e91c691dc8d7fd5bab94e069 (patch)
treea5b5acb2f4611b7613beb0d94027ca42f28b322c /src/main/java/gregtech/common/covers
parent748fe043379899876ee079d3d414f50b5dfad9b6 (diff)
parenteb2f20e5ed7e9c0d572928bb57a99d3f47c8fb11 (diff)
downloadGT5-Unofficial-8b66a49b81771115e91c691dc8d7fd5bab94e069.tar.gz
GT5-Unofficial-8b66a49b81771115e91c691dc8d7fd5bab94e069.tar.bz2
GT5-Unofficial-8b66a49b81771115e91c691dc8d7fd5bab94e069.zip
Merge pull request #387 from GTNewHorizons/remove-logistic-eu-cost
Remove all energy cost of moving fluid and items
Diffstat (limited to 'src/main/java/gregtech/common/covers')
-rw-r--r--src/main/java/gregtech/common/covers/GT_Cover_FluidRegulator.java9
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);
}
}
}