Skip to content

Commit

Permalink
Update ZipUtils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel authored Sep 1, 2023
1 parent 2aac67c commit 90284f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/fabricmc/loom/util/ZipUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public static void replace(Path zip, String path, byte[] bytes) throws IOExcepti
}

public static void deleteIfExists(Path zip, String path) throws IOException {
try (FileSystemUtil.Delegate fs = FileSystemUtil.getJarFileSystem(zip, true)) {
try (FileSystemUtil.Delegate fs = FileSystemUtil.getJarFileSystem(zip, false)) {
Files.deleteIfExists(fs.get().getPath(path));
}
}
Expand Down

0 comments on commit 90284f0

Please sign in to comment.