mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Fix plugin loader
This commit is contained in:
parent
1d1974be6c
commit
d04d6fa1b3
@ -140,7 +140,7 @@ public open class AutoSavePluginData private constructor(
|
||||
}
|
||||
|
||||
internal val debuggingLogger1 by lazy {
|
||||
DefaultLogger("debug").withSwitch(true)
|
||||
DefaultLogger("debug").withSwitch(false)
|
||||
}
|
||||
|
||||
@Suppress("RESULT_CLASS_IN_RETURN_TYPE")
|
||||
|
@ -77,7 +77,7 @@ internal object JarPluginLoaderImpl :
|
||||
logger.info { "Successfully initialized JvmPlugin ${loaded}." }
|
||||
}.onEach { (file, plugin) ->
|
||||
pluginFileToInstanceMap[file] = plugin
|
||||
}
|
||||
} + pluginFileToInstanceMap.asSequence()
|
||||
|
||||
return filePlugins.toSet().map { it.value }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user