Add versions to Mod type

This commit is contained in:
Kallum Jones 2022-08-03 20:52:23 +01:00
parent 66f4c2b289
commit 5f13645122
No known key found for this signature in database
GPG Key ID: D7F4589C4D7F81A9
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ declare global {
id: string
name: string
fileName: string,
version: string
source: string,
}
}

View File

@ -146,6 +146,7 @@ export default class ModrinthSource implements ModSource {
const fileName = latestFile.filename;
const url = latestFile.url;
const modVersion = results[0].version_number;
const task: DownloadTask = {
fileName: fileName,
@ -159,6 +160,7 @@ export default class ModrinthSource implements ModSource {
name: await this.getProjectName(id),
id: id,
fileName: fileName,
version: modVersion,
source: this.getSourceName()
};