Skip to content

Commit 8eb33d6

Browse files
committed
Update file/directory detection in JarRemapper
1 parent 7386998 commit 8eb33d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • minecraft-codev-remapper/src/main/kotlin/net/msrandom/minecraftcodev/remapper

minecraft-codev-remapper/src/main/kotlin/net/msrandom/minecraftcodev/remapper/JarRemapper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ object JarRemapper {
7272
OutputConsumerPath.Builder(output).build().use {
7373
val classpathFiles = classpath.map(File::toPath).filter {
7474
// TODO This is not a good way of detecting directories
75-
it.toString().endsWith(".jar") || it.exists()
75+
'.' in it.last().toString() || it.exists()
7676
}
7777

7878
it.addNonClassFiles(input, NonClassCopyMode.FIX_META_INF, remapper)

0 commit comments

Comments
 (0)