Fix to use a natives dir of an inherited game version.

This commit is contained in:
Alexander Andreev 2024-12-21 18:23:56 +04:00
parent 73f3561d3f
commit cd555f0876
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -103,7 +103,13 @@ func (rc *RunCommand) run_client() error {
p["auth_xuid"] = "null" p["auth_xuid"] = "null"
p["user_type"] = "legacy" p["user_type"] = "legacy"
p["version_type"] = manifst.Type 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_name"] = "mccl"
p["launcher_version"] = "0.1.0" p["launcher_version"] = "0.1.0"
p["classpath"] = manifst.BuildClasspath("", "versions") p["classpath"] = manifst.BuildClasspath("", "versions")