diff --git a/src/main/java/net/fabricmc/loom/util/ZipUtils.java b/src/main/java/net/fabricmc/loom/util/ZipUtils.java index 2e814b94e..14c5cce57 100644 --- a/src/main/java/net/fabricmc/loom/util/ZipUtils.java +++ b/src/main/java/net/fabricmc/loom/util/ZipUtils.java @@ -186,7 +186,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, false)) { - Files.deleteIfExists(fs.get().getPath(path)); + Files.deleteIfExists(fs.getPath(path)); } }