Skip to content

Commit ffd4d18

Browse files
fix: cannot download china specific mod from featured
1 parent acc8872 commit ffd4d18

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

resources/dist.rc

6 Bytes
Binary file not shown.

src/celemod-ui/src/routes/RecommendMods.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const RMod = ({
4242
callRemote('get_mod_update', name, (data) => {
4343
if (!!data) {
4444
const [gbFileId, version] = JSON.parse(data);
45-
ctx.download.downloadMod(name, gbFileId === -1 ? download_url : gbFileId, {
45+
ctx.download.downloadMod(name, parseInt(gbFileId) === -1 ? download_url : gbFileId, {
4646
onProgress(task, progress) {
4747
setState(
4848
`${progress}% (${task.subtasks.filter((v) => v.state === 'Finished').length

0 commit comments

Comments
 (0)