mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-22 20:26:22 +03:00
change asset url to https
This commit is contained in:
parent
85fb677f47
commit
9f1f972d0e
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ module.exports.getVersion = function (version) {
|
||||||
|
|
||||||
const parsed = JSON.parse(body);
|
const parsed = JSON.parse(body);
|
||||||
|
|
||||||
for (let desiredVersion in parsed.versions) {
|
for (const desiredVersion in parsed.versions) {
|
||||||
if(parsed.versions[desiredVersion].id === version) {
|
if(parsed.versions[desiredVersion].id === version) {
|
||||||
request.get(parsed.versions[desiredVersion].url, function(error, response, body) {
|
request.get(parsed.versions[desiredVersion].url, function(error, response, body) {
|
||||||
if (error) resolve(error);
|
if (error) resolve(error);
|
||||||
|
@ -66,7 +66,7 @@ module.exports.getJar = function (version, number, directory) {
|
||||||
|
|
||||||
module.exports.getAssets = function (directory, version) {
|
module.exports.getAssets = function (directory, version) {
|
||||||
return new Promise(async(resolve) => {
|
return new Promise(async(resolve) => {
|
||||||
const assetsUrl = 'http://resources.download.minecraft.net';
|
const assetsUrl = 'https://resources.download.minecraft.net';
|
||||||
const failed = [];
|
const failed = [];
|
||||||
|
|
||||||
if(!fs.existsSync(path.join(directory, 'assets', 'indexes', `${version.assetIndex.id}.json`))) {
|
if(!fs.existsSync(path.join(directory, 'assets', 'indexes', `${version.assetIndex.id}.json`))) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue