From cd698c9f1b4843111ca0079574156497c87e1a1c Mon Sep 17 00:00:00 2001 From: Pierce Date: Thu, 18 Apr 2019 17:35:39 -0400 Subject: [PATCH] Update License and reformat some things Not a major change also removed the forced `-Xincgc` . --- LICENSE | 2 +- components/authenticator.js | 14 ++++++-------- components/launcher.js | 3 +-- package.json | 2 +- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/LICENSE b/LICENSE index 8e68c49..d97e37d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 +Copyright (c) 2019 Pierce Harriz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/components/authenticator.js b/components/authenticator.js index 166c959..f318603 100644 --- a/components/authenticator.js +++ b/components/authenticator.js @@ -3,7 +3,7 @@ const uuid = require('uuid/v1'); const api_url = "https://authserver.mojang.com"; -function getAuth(username, password) { +module.exports.getAuth = function (username, password) { return new Promise(resolve => { if(!password) { const user = { @@ -49,9 +49,9 @@ function getAuth(username, password) { resolve(userProfile); }); }); -} +}; -function validate(access_token) { +module.exports.validate = function (access_token) { return new Promise(resolve => { const requestObject = { url: api_url + "/validate", @@ -66,9 +66,9 @@ function validate(access_token) { if(!body) resolve(true); else resolve(false); }); }); -} +}; -function refreshAuth(accessToken, clientToken, selectedProfile) { +module.exports.refreshAuth = function (accessToken, clientToken, selectedProfile) { return new Promise(resolve => { const requestObject = { url: api_url + "/refresh", @@ -98,6 +98,4 @@ function refreshAuth(accessToken, clientToken, selectedProfile) { resolve(userProfile); }); }); -} - -module.exports = {getAuth, validate, refreshAuth}; \ No newline at end of file +}; \ No newline at end of file diff --git a/components/launcher.js b/components/launcher.js index 995ad04..8ee1776 100644 --- a/components/launcher.js +++ b/components/launcher.js @@ -38,8 +38,7 @@ module.exports = async function (options) { '-Dfml.ignoreInvalidMinecraftCertificates=true', `-Djava.library.path=${nativePath}`, `-Xmx${options.memory.max}M`, - `-Xms${options.memory.min}M`, - '-Xincgc' + `-Xms${options.memory.min}M` ]; jvm.push(await handler.getJVM(versionFile, options)); if(options.customArgs) jvm = jvm.concat(options.customArgs); diff --git a/package.json b/package.json index 3ebbe21..503d02e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minecraft-launcher-core", - "version": "2.5.2", + "version": "2.5.3", "description": "Module that downloads Minecraft assets and runs Minecraft. Also Supports Forge", "main": "index.js", "dependencies": {