mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-31 11:30:16 +08:00
相反于加载顺序卸载插件, close #1994
This commit is contained in:
parent
4408750847
commit
70c8255b6b
@ -78,9 +78,10 @@ internal class PluginManagerImpl(
|
||||
|
||||
init {
|
||||
MiraiConsole.coroutineContext[Job]!!.invokeOnCompletion {
|
||||
plugins.forEach { plugin ->
|
||||
if (plugin.isEnabled)
|
||||
plugins.asReversed().forEach { plugin ->
|
||||
if (plugin.isEnabled) {
|
||||
disablePlugin(plugin)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user