prevent another error
All checks were successful
Publish to snapshot maven / build (push) Successful in 21s

This commit is contained in:
moehreag 2024-06-11 03:16:11 +02:00
parent 181462f0b4
commit 5f74d32c1a

View file

@ -36,10 +36,12 @@ object Nester {
}.get()
path.createDirectories()
val target = path.resolve(location.file.fileName.toString())
Files.copy(location.file, target)
files.add(
NestedJar(location.modId, target.absolute().toString())
)
if (target.notExists()) {
Files.copy(location.file, target)
files.add(
NestedJar(location.modId, target.absolute().toString())
)
}
}
}
configuration.resolvedConfiguration.firstLevelModuleDependencies.forEach { dep ->
@ -135,4 +137,4 @@ class NestedJar(val id: String, val path: String){
config.add("path", path)
return config
}
}
}