From cd555f0876f82e30fe4ef84b273db98c90a8ffae Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 21 Dec 2024 18:23:56 +0400 Subject: [PATCH] Fix to use a natives dir of an inherited game version. --- cmd/mccl/commands/run_command.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/mccl/commands/run_command.go b/cmd/mccl/commands/run_command.go index 37a60e8..8147c18 100755 --- a/cmd/mccl/commands/run_command.go +++ b/cmd/mccl/commands/run_command.go @@ -103,7 +103,13 @@ func (rc *RunCommand) run_client() error { p["auth_xuid"] = "null" p["user_type"] = "legacy" p["version_type"] = manifst.Type - p["natives_directory"] = path.Join("", "versions", manifst.Id, "natives") + + nativesId := manifst.Id + if manifst.InheritsFrom != "" { + nativesId = manifst.InheritsFrom + } + p["natives_directory"] = path.Join("", "versions", nativesId, "natives") + p["launcher_name"] = "mccl" p["launcher_version"] = "0.1.0" p["classpath"] = manifst.BuildClasspath("", "versions")