aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-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) {