Skip to content

Commit

Permalink
fix: don't create the file as a directory...
Browse files Browse the repository at this point in the history
  • Loading branch information
AsoDesu committed Dec 7, 2023
1 parent 66a33bb commit 73f43f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public CompletableFuture<Void> downloadAndApply() {
Path outputFile = ResourcePackOptions.packZip;

try {
FileUtil.createDirectoriesSafe(outputFile);
FileUtil.createDirectoriesSafe(outputFile.getParent());

URL url = new URL(ResourcePackOptions.data.url);
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(minecraft.getProxy());
Expand Down

0 comments on commit 73f43f5

Please sign in to comment.