Skip to content

Commit

Permalink
fix many bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
SoutheyLeo committed Nov 4, 2021
1 parent 410f896 commit c4cfdc7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ object Loader {
}
val tasks = mutableListOf<File>().also { tasks ->
files.forEach { file ->
if (!tasks.any { it.nameWithoutExtension == file.nameWithoutExtension })
if (!tasks.any { it.nameWithoutExtension == file.nameWithoutExtension } && file.extension=="yml")
tasks.add(file)
}
}
val serializingTime = System.currentTimeMillis()
tasks.forEach {
if(it.extension=="db")
return
val keys = YamlConfiguration.loadConfiguration(it).getConfigurationSection("").getKeys(false)
for (key in keys){
if (FaithlLevelAPI.getLevelData(key) == null)
Expand Down

0 comments on commit c4cfdc7

Please sign in to comment.