Fix integer conversion

This commit is contained in:
Ben Spiers committed 2014-08-29 03:14:00 +01:00
1 parent 9294719ab2
commit c71c5d9fe7
1 file changed
+1 -1
@@ -632,7 +632,7 @@ public final class MekanismUtils
*/
public static int getSecondaryEnergyPerTick(IUpgradeManagement mgmt, int def)
{
return def * (int)Math.pow(Mekanism.maxUpgradeMultiplier, mgmt.getSpeedMultiplier()/8.0);
return (int)(def * Math.pow(Mekanism.maxUpgradeMultiplier, mgmt.getSpeedMultiplier()/8.0));
}
/**