diff options
| author | Martin Robertz <dream-master@gmx.net> | 2023-04-01 14:13:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-01 14:13:37 +0200 |
| commit | 30fb59283b5e067f83505e0402d8b934f35d7e30 (patch) | |
| tree | 69004a1caa8cef07720add2e4eb7ca936401f834 /src/main/java | |
| parent | bdf64584ccf40fb36325e9968ab3abe047ac7166 (diff) | |
| parent | 17859fe1dc1c1c27202b348e80b4fb5f02194d3a (diff) | |
| download | GT5-Unofficial-30fb59283b5e067f83505e0402d8b934f35d7e30.tar.gz GT5-Unofficial-30fb59283b5e067f83505e0402d8b934f35d7e30.tar.bz2 GT5-Unofficial-30fb59283b5e067f83505e0402d8b934f35d7e30.zip | |
Merge pull request #181 from GTNewHorizons/fix/WAILA
Fix WAILA energy display
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java | 5 |
1 files changed, 5 insertions, 0 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 5fd10633f4..0fc4df1266 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 @@ -680,6 +680,11 @@ public abstract class GT_MetaTileEntity_MultiblockBase_EM } } + @Override + protected long getActualEnergyUsage() { + return -(useLongPower ? lEUt : mEUt) * eAmpereFlow * 10_000 / Math.max(1_000, mEfficiency); + } + /** * Extra hook on cyclic updates (not really needed for machines smaller than 1 chunk) BUT NEEDED WHEN - machine * blocks are not touching each other or they don't implement IMachineBlockUpdateable (ex. air,stone,weird TE's) |
