Update ServerLauncher.kt

This commit is contained in:
InsanusMokrassar 2022-12-05 21:45:30 +06:00 committed by GitHub
parent 369ff26627
commit 072805efc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -7,11 +7,7 @@ import org.koin.core.Koin
import org.koin.core.module.Module
import org.koin.dsl.module
class ServerLauncher : ServerPlugin {
val defaultJson = Json {
ignoreUnknownKeys = true
}
object ServerLauncher : ServerPlugin {
override fun Module.setupDI(config: JsonObject) {
val pluginsConfig = defaultJson.decodeFromJsonElement(Config.serializer(), config)