Fix plugin loader

This commit is contained in:
Him188 2020-09-01 19:50:53 +08:00
parent 1d1974be6c
commit d04d6fa1b3
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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 }
} }