Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion Plain Craft Launcher 2/Modules/Minecraft/ModComp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3568,7 +3568,6 @@ private static void _StartQuickDownload(CompFile file, string target)
CompType.ResourcePack => "resourcepacks\\",
CompType.Shader => "shaderpacks\\",
CompType.World => "saves\\",
CompType.DataPack => "", // 导航到版本根目录
_ => ""
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ private void Load_OnFinish()
// 列表项
PanProjects.Children.Clear();
var index = Math.Min(page * pageSize, storage.results.Count - 1);
// 整合包需要安装而非直接下载,不显示快速下载按钮
var showQuickDownload = PageType != ModComp.CompType.ModPack;
foreach (var result in storage.results.GetRange(index, Math.Min(storage.results.Count - index, pageSize)))
{
var showQuickDownload = result.Type != ModComp.CompType.ModPack &&
result.Type != ModComp.CompType.DataPack;
PanProjects.Children.Add(result.ToCompItem(loader.input.gameVersion is null,
loader.input.modLoader == ModComp.CompLoaderType.Any &&
(PageType == ModComp.CompType.Mod || PageType == ModComp.CompType.ModPack),
showQuickDownload));
}
// 页码
CardPages.Visibility =
storage.results.Count > 40 || storage.curseForgeOffset < storage.curseForgeTotal ||
Expand Down
Loading