aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2023-04-01 14:13:37 +0200
committerGitHub <noreply@github.com>2023-04-01 14:13:37 +0200
commit30fb59283b5e067f83505e0402d8b934f35d7e30 (patch)
tree69004a1caa8cef07720add2e4eb7ca936401f834 /src
parentbdf64584ccf40fb36325e9968ab3abe047ac7166 (diff)
parent17859fe1dc1c1c27202b348e80b4fb5f02194d3a (diff)
downloadGT5-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')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/GT_MetaTileEntity_MultiblockBase_EM.java5
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)