From 0f28669e082089d1d27a8569ce8ee0a6636393f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuzey=20Kurtulu=C5=9F?= <46726434+kuzeeeyk@users.noreply.github.com> Date: Tue, 23 Aug 2022 01:30:34 +0300 Subject: [PATCH] Custom version name was not appearing on F3 screen (#93) When launching custom versions from vanilla launcher like Fabric, OptiFine you'll notice it'll show up as Minecraft 1.8.9 (OptFine_FOO_BARR/vanilla) at top of the debug menu. MCLC was using options.number instead of options.custom and it was causing that problem. --- components/handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/handler.js b/components/handler.js index 788347c..d57cc31 100644 --- a/components/handler.js +++ b/components/handler.js @@ -568,7 +568,7 @@ class Handler { '${user_properties}': this.options.authorization.user_properties, '${user_type}': this.options.authorization.meta.type, '${version_name}': this.options.version.number, - '${assets_index_name}': this.version.assetIndex.id, + '${assets_index_name}': this.options.version.custom || this.options.version.number, '${game_directory}': this.options.overrides.gameDirectory || this.options.root, '${assets_root}': assetPath, '${game_assets}': assetPath,