aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTec <daniel112092@gmail.com>2019-07-17 21:52:06 +0200
committerTec <daniel112092@gmail.com>2019-07-17 21:52:06 +0200
commit082fa82c0a7a58f2cef95d5bd2c00920c8ee17e2 (patch)
treec2b5f0b6ebdf8ca0dd1065335d1c811a62799139 /src
parent1790e69559b659d0050fe95d5df489e6b193ccf0 (diff)
downloadGT5-Unofficial-082fa82c0a7a58f2cef95d5bd2c00920c8ee17e2.tar.gz
GT5-Unofficial-082fa82c0a7a58f2cef95d5bd2c00920c8ee17e2.tar.bz2
GT5-Unofficial-082fa82c0a7a58f2cef95d5bd2c00920c8ee17e2.zip
Adjust clean energy behaviour
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java
index 635107ff28..71138bb55a 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java
@@ -1424,9 +1424,6 @@ public abstract class GT_MetaTileEntity_MultiblockBase_EM extends GT_MetaTileEnt
eMaxAmpereGen += hatch.maxEUOutput() / maxEUoutputMin * hatch.Amperes;
}
}
- if (getEUVar() > maxEUStore()) {
- setEUVar(maxEUStore());
- }
} else {
maxEUinputMin = 0;
maxEUinputMax = 0;
@@ -1434,7 +1431,9 @@ public abstract class GT_MetaTileEntity_MultiblockBase_EM extends GT_MetaTileEnt
maxEUoutputMin = 0;
maxEUoutputMax = 0;
eMaxAmpereGen = 0;
- setEUVar(0);
+ }
+ if (getEUVar() > maxEUStore()) {
+ setEUVar(maxEUStore());
}
for (GT_MetaTileEntity_Hatch_Uncertainty hatch : eUncertainHatches) {