Skip to content

Commit

Permalink
Fix ./libraries already exists error
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed May 8, 2017
1 parent 88c906d commit e0bea1c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ private static byte[] getStubSrgBytes(String name) {
if (stubs == null) {
Path extracted = Paths.get("./libraries/minecraft_stubs.jar");
if (!Files.exists(extracted)) {
Files.createDirectory(extracted.getParent());
if (!Files.isDirectory(extracted.getParent())) {
Files.createDirectory(extracted.getParent());
}
Files.copy(new LzmaInputStream(LaunchClassLoaderUtil.class.getResourceAsStream("/minecraft_stubs.jar.lzma")), extracted);
}
stubs = FileSystems.newFileSystem(extracted, null);
Expand Down

0 comments on commit e0bea1c

Please sign in to comment.