[FIX] Bug fixes

This commit is contained in:
Gravita 2025-06-29 06:02:59 +07:00
parent c46503fa95
commit b1929f7927
3 changed files with 5 additions and 3 deletions

View file

@ -113,7 +113,9 @@ public CompletedProfile pushUpdate(UncompletedProfile profile, String tag, Clien
if(!Files.exists(assetDirPath)) {
Files.createDirectories(assetDirPath);
}
updatesDirMap.put("assets", new HashedDir(assetDirPath, null, true, true));
var assetsHDir = new HashedDir(assetDirPath, null, true, true);
updatesDirMap.put("assets", assetsHDir);
localProfile.assetDir = assetsHDir;
}
}
if(assetActions != null && !assetActions.isEmpty()) {

View file

@ -44,7 +44,7 @@ protected boolean showApplyDialog(String text) throws IOException {
return response.equals("y");
}
protected static Downloader downloadWithProgressBar(String taskName, List<Downloader.SizedFile> list, String baseUrl, Path targetDir) throws Exception {
public static Downloader downloadWithProgressBar(String taskName, List<Downloader.SizedFile> list, String baseUrl, Path targetDir) throws Exception {
long total = 0;
for (Downloader.SizedFile file : list) {
if(file.size < 0) {

@ -1 +1 @@
Subproject commit 3ce7d4feb1b95152917c9ed85a5186c145a9376c
Subproject commit e6b8af9b107ea8c7dab4fc5968cfd0cff05b7d61