fix transitive-aw issues (x2)
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s
This commit is contained in:
parent
ad2e3798f3
commit
3b88625edf
|
@ -7,7 +7,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "dev.frogmc"
|
group = "dev.frogmc"
|
||||||
version = "0.0.1-alpha.2"
|
version = "0.0.1-alpha.3"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
|
|
|
@ -51,14 +51,10 @@ object AccessWidener {
|
||||||
}.map { it.file.toPath() }.filter { it.exists() && it.isRegularFile() }.map {
|
}.map { it.file.toPath() }.filter { it.exists() && it.isRegularFile() }.map {
|
||||||
FileSystems.newFileSystem(it).use {fs ->
|
FileSystems.newFileSystem(it).use {fs ->
|
||||||
val metadata = fs.getPath(Constants.MOD_METADATA_FILE)
|
val metadata = fs.getPath(Constants.MOD_METADATA_FILE)
|
||||||
if (metadata.exists()) {
|
PARSER.parse(metadata, FileNotFoundAction.READ_NOTHING)
|
||||||
return@map null
|
.get<String>("frog.extensions.accesswidener")?.let { name ->
|
||||||
} else {
|
return@map metadata.resolveSibling(name)
|
||||||
PARSER.parse(it, FileNotFoundAction.READ_NOTHING)
|
}
|
||||||
.get<String>("frog.extensions.accesswidener")?.let { name ->
|
|
||||||
return@map it.resolveSibling(name)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}.toList()).filterNotNull().also { println(it) }
|
}.toList()).filterNotNull().also { println(it) }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue