aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReflex18 <127531099+Reflex18@users.noreply.github.com>2024-05-11 19:43:39 +1000
committerGitHub <noreply@github.com>2024-05-11 11:43:39 +0200
commit59d4c95437c6d80e2909e02c494f601ff892ce4d (patch)
tree4681e5f3929dc4e561bcf13c4cffcde2f7229e61
parentd2df5d922f7f0e7ec5aed76638068785b14d758e (diff)
downloadGT5-Unofficial-59d4c95437c6d80e2909e02c494f601ff892ce4d.tar.gz
GT5-Unofficial-59d4c95437c6d80e2909e02c494f601ff892ce4d.tar.bz2
GT5-Unofficial-59d4c95437c6d80e2909e02c494f601ff892ce4d.zip
LSC_fill/empty fix (#90)
Fix to account for the difference in seconds and ticks to be more accurate.
-rw-r--r--src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
index 5057920c2f..843a35729d 100644
--- a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
+++ b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
@@ -927,14 +927,14 @@ public class GTMTE_LapotronicSuperCapacitor extends
if (avgIn > avgOut) {
// Calculate time to full if charging
if (avgIn != 0) {
- double timeToFull = (capacity.longValue() - stored.longValue()) / avgIn;
+ double timeToFull = (capacity.longValue() - stored.longValue()) / avgIn / 20;
String timeToFullString = formatTime(timeToFull);
ll.add("Time to Full: " + timeToFullString);
}
} else {
// Calculate time to empty if discharging
if (avgOut != 0) {
- double timeToEmpty = stored.longValue() / avgOut;
+ double timeToEmpty = stored.longValue() / avgOut / 20;
String timeToEmptyString = formatTime(timeToEmpty);
ll.add("Time to Empty: " + timeToEmptyString);
}