mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +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 {
|
internal val debuggingLogger1 by lazy {
|
||||||
DefaultLogger("debug").withSwitch(true)
|
DefaultLogger("debug").withSwitch(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("RESULT_CLASS_IN_RETURN_TYPE")
|
@Suppress("RESULT_CLASS_IN_RETURN_TYPE")
|
||||||
|
@ -77,7 +77,7 @@ internal object JarPluginLoaderImpl :
|
|||||||
logger.info { "Successfully initialized JvmPlugin ${loaded}." }
|
logger.info { "Successfully initialized JvmPlugin ${loaded}." }
|
||||||
}.onEach { (file, plugin) ->
|
}.onEach { (file, plugin) ->
|
||||||
pluginFileToInstanceMap[file] = plugin
|
pluginFileToInstanceMap[file] = plugin
|
||||||
}
|
} + pluginFileToInstanceMap.asSequence()
|
||||||
|
|
||||||
return filePlugins.toSet().map { it.value }
|
return filePlugins.toSet().map { it.value }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user