Improved setting with JSON configs
This commit is contained in:
@@ -83,7 +83,7 @@ open class EcoJSONConfigWrapper : Config {
|
|||||||
section.setRecursively(remainingPath, obj)
|
section.setRecursively(remainingPath, obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
values[path] = if (obj is EcoJSONConfigWrapper) obj.values else obj
|
values[path] = if (obj is Config) obj.toMap() else obj
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getKeys(deep: Boolean): List<String> {
|
override fun getKeys(deep: Boolean): List<String> {
|
||||||
|
|||||||
Reference in New Issue
Block a user