From 59d4c95437c6d80e2909e02c494f601ff892ce4d Mon Sep 17 00:00:00 2001 From: Reflex18 <127531099+Reflex18@users.noreply.github.com> Date: Sat, 11 May 2024 19:43:39 +1000 Subject: LSC_fill/empty fix (#90) Fix to account for the difference in seconds and ticks to be more accurate. --- src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java | 4 ++-- 1 file 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); } -- cgit