mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-10 12:17:03 +08:00
fix a typo
This commit is contained in:
parent
2e0f31816f
commit
a0ad8af4cc
@ -120,7 +120,7 @@ abstract class PluginBase
|
||||
* 这个 [Config] 是 read-only 的
|
||||
*/
|
||||
fun getResourcesConfig(fileName: String): Config {
|
||||
if (fileName.contains(".")) {
|
||||
if (!fileName.contains(".")) {
|
||||
error("Unknown Config Type")
|
||||
}
|
||||
return Config.load(getResources(fileName) ?: error("No such file: $fileName"), fileName.substringAfter('.'))
|
||||
|
Loading…
Reference in New Issue
Block a user