mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-04 03:46:57 -04:00
update
This commit is contained in:
parent
dcb3a87a00
commit
70c4559ee4
@ -158,6 +158,8 @@ public class HMCLGameRepository extends DefaultGameRepository {
|
|||||||
blackList.add("saves");
|
blackList.add("saves");
|
||||||
|
|
||||||
if (Files.exists(dstDir)) throw new IOException("Version exists");
|
if (Files.exists(dstDir)) throw new IOException("Version exists");
|
||||||
|
|
||||||
|
Files.createDirectories(dstDir);
|
||||||
FileUtils.copyDirectory(srcDir, dstDir, path -> Modpack.acceptFile(path, blackList, null));
|
FileUtils.copyDirectory(srcDir, dstDir, path -> Modpack.acceptFile(path, blackList, null));
|
||||||
|
|
||||||
Path fromJson = srcDir.resolve(srcId + ".json");
|
Path fromJson = srcDir.resolve(srcId + ".json");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user