added support for modpack defined in version descriptor

This commit is contained in:
2024-12-29 12:15:51 +05:00
parent d141ec23dc
commit 2c780afea8
15 changed files with 256 additions and 92 deletions

View File

@@ -26,7 +26,7 @@ public class GameVersionCatalog
_ => p.OtherTypeAllowed
};
if(match)
_versionPropsList.Add(new GameVersionProps(r.id, r.url));
_versionPropsList.Add(new GameVersionProps(r));
}
return _versionPropsList;
}

View File

@@ -17,6 +17,9 @@ public class GameVersionDescriptor
public JavaVersion javaVersion { get; set; } = new() { component = "jre-legacy", majorVersion = 8 };
public string? minecraftArguments { get; set; }
public ArgumentsNew? arguments { get; set; }
// my additions
public MyModpackRemoteProps? modpack { get; set; }
}
public class Artifact