Skip to content

Commit 142f441

Browse files
committed
Fix crash with v1 Remappers
1 parent 328c396 commit 142f441

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/io/github/fabriccompatibiltylayers/modremappingapi/impl/utils

1 file changed

+2
-2
lines changed

src/main/java/io/github/fabriccompatibiltylayers/modremappingapi/impl/utils/FileUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ public FileVisitResult visitFileFailed(Path file, IOException exc) {
164164
}
165165

166166
@Override
167-
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
168-
Files.delete(dir);
167+
public FileVisitResult postVisitDirectory(Path subDir, IOException exc) throws IOException {
168+
if (dir != subDir) Files.delete(subDir);
169169
return FileVisitResult.CONTINUE;
170170
}
171171
});

0 commit comments

Comments
 (0)