diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/setting/SettingStorage internal.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/setting/SettingStorage internal.kt index 5987eae66..6b0a9d0d4 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/setting/SettingStorage internal.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/setting/SettingStorage internal.kt @@ -146,7 +146,7 @@ internal open class MultiFileSettingStorageImpl( check(file.exists() && file.isFile && file.canRead()) { "${file.absolutePath} cannot be read" } Yaml.default.decodeFromString(instance.updaterSerializer, file.readText()) instance - } + }.also { it.setStorage(this) } protected open fun getSettingFile(holder: SettingHolder, clazz: KClass<*>): File = with(clazz) { val name = findASerialName()