Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
heipiao233 committed Aug 2, 2023
1 parent 840f9d1 commit a74c908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class Launcher {
};
}
}
if (!fs.existsSync("./locales") || (await fs.promises.readFile("./locales/version")).toString().trim() !== this.version) {
if (!fs.existsSync("./locales") || (await fs.promises.readFile("./locales/version")).toString().trim() !== Launcher.version) {
await download("https://heipiao233.github.io/dmclc/locales.tar.gz", "./locales.tar.gz", this);
await compressing.tgz.uncompress("./locales.tar.gz", ".");
}
Expand Down
2 changes: 1 addition & 1 deletion src/mods/download/modrinth/ModrinthContentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default class ModrinthContentService implements ContentService<string> {
this.got = got.extend({
prefixUrl: "https://api.modrinth.com/v2/",
headers: {
"user-agent": `${this.launcher.name}, using heipiao233/dmclc/${this.launcher.version} ([email protected])`
"user-agent": `${this.launcher.name}, using heipiao233/dmclc/${Launcher.version} ([email protected])`
}
});
}
Expand Down

0 comments on commit a74c908

Please sign in to comment.