diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt index 74e516b..cb74257 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt @@ -51,11 +51,10 @@ object Configuration { } } + operator fun invoke() = obtained operator fun getValue(ref: Any?, property: KProperty<*>): Boolean = invoke().getValue(ref, property) operator fun setValue(ref: Any?, property: KProperty<*>, value: T) { ModifiableValues[property.name] = { ConfigValueFactory.fromAnyRef(value) } } - operator fun invoke() = obtained - private val obtained: Config by lazy { var result: Config = empty() with(file) {