Add assetIndex override, npm bump

This commit is contained in:
Pierce 2023-06-16 15:47:20 -07:00
parent acdaac526d
commit 08d49deb49
3 changed files with 4 additions and 3 deletions

View file

@ -2,7 +2,7 @@
##### This project is complete for now. ##### This project is complete for now.
[![Build Status](https://travis-ci.com/Pierce01/MinecraftLauncher-core.svg?branch=master)](https://travis-ci.com/Pierce01/MinecraftLauncher-core) [![Build Status](https://travis-ci.com/Pierce01/MinecraftLauncher-core.svg?branch=master)](https://travis-ci.com/Pierce01/MinecraftLauncher-core)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![version](https://img.shields.io/badge/stable_version-3.16.18-blue) ![version](https://img.shields.io/badge/stable_version-3.16.19-blue)
![badge](https://img.shields.io/badge/ncurses-not_supported-purple) ![badge](https://img.shields.io/badge/ncurses-not_supported-purple)
MCLC (Minecraft Launcher Core) is a NodeJS solution for launching modded and vanilla Minecraft without having to download and format everything yourself. MCLC (Minecraft Launcher Core) is a NodeJS solution for launching modded and vanilla Minecraft without having to download and format everything yourself.
@ -97,6 +97,7 @@ let opts = {
directory: '', // where the Minecraft jar and version json are located. directory: '', // where the Minecraft jar and version json are located.
natives: '', // native directory path. natives: '', // native directory path.
assetRoot: '', assetRoot: '',
assetIndex: '',
libraryRoot: '', libraryRoot: '',
cwd: '', // working directory of the java process. cwd: '', // working directory of the java process.
detached: true, // whether or not the client is detached from the parent / launcher. detached: true, // whether or not the client is detached from the parent / launcher.

View file

@ -599,7 +599,7 @@ class Handler {
'${user_properties}': this.options.authorization.user_properties, '${user_properties}': this.options.authorization.user_properties,
'${user_type}': this.options.authorization.meta.type, '${user_type}': this.options.authorization.meta.type,
'${version_name}': this.options.version.number, '${version_name}': this.options.version.number,
'${assets_index_name}': this.options.version.custom || this.options.version.number, '${assets_index_name}': this.options.overrides.assetIndex || this.options.version.custom || this.options.version.number,
'${game_directory}': this.options.overrides.gameDirectory || this.options.root, '${game_directory}': this.options.overrides.gameDirectory || this.options.root,
'${assets_root}': assetPath, '${assets_root}': assetPath,
'${game_assets}': assetPath, '${game_assets}': assetPath,

View file

@ -1,6 +1,6 @@
{ {
"name": "minecraft-launcher-core", "name": "minecraft-launcher-core",
"version": "3.16.18", "version": "3.16.19",
"description": "Lightweight module that downloads and runs Minecraft using javascript / NodeJS", "description": "Lightweight module that downloads and runs Minecraft using javascript / NodeJS",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {