Skip to content

Commit d5ceed7

Browse files
committed
Fix incorrect method usage in download-utils
1 parent 3b6ac86 commit d5ceed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

download-utils/src/main/java/net/minecraftforge/util/download/DownloadUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public String read(final JsonReader in) throws IOException {
165165
*/
166166
public static boolean downloadFile(File target, String url) {
167167
try {
168-
Files.createDirectories(target.toPath());
168+
Files.createDirectories(target.toPath().getParent());
169169
Log.quiet("Downloading " + url);
170170

171171
URLConnection connection = getConnection(url);

0 commit comments

Comments
 (0)