diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfilesProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfilesProvider.java index 465be775..c5e6c388 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfilesProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfilesProvider.java @@ -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()) { diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/command/Command.java b/LaunchServer/src/main/java/pro/gravit/launchserver/command/Command.java index e2bbb62b..4c89f58a 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/command/Command.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/command/Command.java @@ -44,7 +44,7 @@ protected boolean showApplyDialog(String text) throws IOException { return response.equals("y"); } - protected static Downloader downloadWithProgressBar(String taskName, List list, String baseUrl, Path targetDir) throws Exception { + public static Downloader downloadWithProgressBar(String taskName, List list, String baseUrl, Path targetDir) throws Exception { long total = 0; for (Downloader.SizedFile file : list) { if(file.size < 0) { diff --git a/modules b/modules index 3ce7d4fe..e6b8af9b 160000 --- a/modules +++ b/modules @@ -1 +1 @@ -Subproject commit 3ce7d4feb1b95152917c9ed85a5186c145a9376c +Subproject commit e6b8af9b107ea8c7dab4fc5968cfd0cff05b7d61