Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public static DownloadListPage ofResourcePack(DownloadPage.DownloadCallback call
}

public static DownloadListPage ofShaderPack(DownloadPage.DownloadCallback callback, boolean versionSelection) {
return new HMCLLocalizedDownloadListPage(callback, versionSelection, RemoteModRepository.Type.SHADER_PACK, null, ModrinthRemoteModRepository.SHADER_PACKS);
HMCLLocalizedDownloadListPage hmclLocalizedDownloadListPage = new HMCLLocalizedDownloadListPage(callback, versionSelection, RemoteModRepository.Type.SHADER_PACK, null, ModrinthRemoteModRepository.SHADER_PACKS);
hmclLocalizedDownloadListPage.supportChinese.set(false);
return hmclLocalizedDownloadListPage;
Comment thread
CiiLu marked this conversation as resolved.
Outdated

Copilot AI Feb 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local variable name hmclLocalizedDownloadListPage is overly verbose and repeats the type name; a shorter name like page (consistent with other factory methods in this class) would improve readability while keeping the same behavior.

Suggested change
HMCLLocalizedDownloadListPage hmclLocalizedDownloadListPage = new HMCLLocalizedDownloadListPage(callback, versionSelection, RemoteModRepository.Type.SHADER_PACK, null, ModrinthRemoteModRepository.SHADER_PACKS);
hmclLocalizedDownloadListPage.supportChinese.set(false);
return hmclLocalizedDownloadListPage;
HMCLLocalizedDownloadListPage page = new HMCLLocalizedDownloadListPage(callback, versionSelection, RemoteModRepository.Type.SHADER_PACK, null, ModrinthRemoteModRepository.SHADER_PACKS);
page.supportChinese.set(false);
return page;

Copilot uses AI. Check for mistakes.
}

private HMCLLocalizedDownloadListPage(DownloadPage.DownloadCallback callback, boolean versionSelection, RemoteModRepository.Type type, CurseForgeRemoteModRepository curseForge, ModrinthRemoteModRepository modrinth) {
Expand Down