From 9dafff8240bae69aa68395d4dec5cddd58399851 Mon Sep 17 00:00:00 2001 From: Alkalus Date: Thu, 14 Sep 2017 13:47:19 +1000 Subject: + 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. --- src/Java/gtPlusPlus/core/util/math/MathUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Java/gtPlusPlus/core/util') 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)); } -- cgit