This commit is contained in:
坏黑 2021-08-25 16:19:20 +08:00
parent 8596bcae2c
commit ce8fe9c4bf
2 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ plugins {
apply plugin: 'kotlin'
group 'io.izzel.taboolib'
version '1.25'
version '1.26'
configurations {
embed

View File

@ -106,7 +106,7 @@ class OptimizeFileReader(project: Project, input: InputStream) {
if (member.any { name.startsWith(it) }) {
if (depend != null) {
val fail = depend.name.any { n ->
val set = use[n]!!.toMutableList()
val set = use[n]?.toMutableList() ?: ArrayList()
set.remove(n)
set.removeAll(depend.exclude)
set.isNotEmpty()
@ -116,12 +116,13 @@ class OptimizeFileReader(project: Project, input: InputStream) {
}
}
for (s in check) {
val set = use[s]!!.toMutableList()
val set = use[s]?.toMutableList() ?: ArrayList()
set.remove(s)
set.removeAll(check)
set.removeAll(member)
set.removeAll(exclude)
if (set.isNotEmpty()) {
println("$s -> $set")
return false
}
}