diff options
author | BlueWeabo <76872108+BlueWeabo@users.noreply.github.com> | 2023-01-07 13:58:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-07 12:58:45 +0100 |
commit | 18139b752f86c0d13e193a45b8767026400b0537 (patch) | |
tree | 73a0244d2b0504123151861e9ff64e40f8420519 /src/main/java/gregtech/api/util | |
parent | b34471f967457b953efd885273843ff5f0e75d51 (diff) | |
download | GT5-Unofficial-18139b752f86c0d13e193a45b8767026400b0537.tar.gz GT5-Unofficial-18139b752f86c0d13e193a45b8767026400b0537.tar.bz2 GT5-Unofficial-18139b752f86c0d13e193a45b8767026400b0537.zip |
remove exception, instead calculate (#1638)
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r-- | src/main/java/gregtech/api/util/GT_OverclockCalculator.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/gregtech/api/util/GT_OverclockCalculator.java b/src/main/java/gregtech/api/util/GT_OverclockCalculator.java index 7e3be7e3b0..8003e21054 100644 --- a/src/main/java/gregtech/api/util/GT_OverclockCalculator.java +++ b/src/main/java/gregtech/api/util/GT_OverclockCalculator.java @@ -250,9 +250,9 @@ public class GT_OverclockCalculator { /** * @return The consumtipn after overclock has been calculated */ - public long getConsumption() throws Exception { + public long getConsumption() { if (!calculated) { - throw new Exception("Tried to get consumption before calculating!"); + calculate(); } return mRecipeEUt; } @@ -260,9 +260,9 @@ public class GT_OverclockCalculator { /** * @return The duration of the recipe after overclock has been calculated */ - public int getDuration() throws Exception { + public int getDuration() { if (!calculated) { - throw new Exception("Tried to get duration before calculating!"); + calculate(); } return mDuration; } |