aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/util/math
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-09-14 13:47:19 +1000
committerAlkalus <draknyte1@hotmail.com>2017-09-14 13:47:19 +1000
commit9dafff8240bae69aa68395d4dec5cddd58399851 (patch)
treed13a05cc06ee3671abf56167a27a0243989bdb16 /src/Java/gtPlusPlus/core/util/math
parent27f57157d001124c8ea2c4f223a3bf1259ef011b (diff)
downloadGT5-Unofficial-9dafff8240bae69aa68395d4dec5cddd58399851.tar.gz
GT5-Unofficial-9dafff8240bae69aa68395d4dec5cddd58399851.tar.bz2
GT5-Unofficial-9dafff8240bae69aa68395d4dec5cddd58399851.zip
+ Power Sub-Station now uses 1% of average eu/t.
$ Possible fix to dynamo hatches not filling properly. + Added a much better tooltip to the Power Sub-Station.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/math')
-rw-r--r--src/Java/gtPlusPlus/core/util/math/MathUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/core/util/math/MathUtils.java b/src/Java/gtPlusPlus/core/util/math/MathUtils.java
index 72969550e8..3361591ce8 100644
--- a/src/Java/gtPlusPlus/core/util/math/MathUtils.java
+++ b/src/Java/gtPlusPlus/core/util/math/MathUtils.java
@@ -144,7 +144,7 @@ public class MathUtils {
return roundOff;
}
- public static int findPercentageOfInt(int input, int percentage){
+ public static int findPercentageOfInt(long input, float percentage){
return (int)(input*(percentage/100.0f));
}