Fix AbstractPluginData.findBackingFieldValueNode

This commit is contained in:
Him188 2022-04-24 15:05:53 +01:00
parent 45defb32a2
commit ffbe540800

View File

@ -180,5 +180,5 @@ public fun <T> AbstractPluginData.findBackingFieldValue(propertyValueName: Strin
@ConsoleExperimentalApi
public fun <T> AbstractPluginData.findBackingFieldValueNode(property: KProperty<T>): AbstractPluginData.ValueNode<out T>? {
@Suppress("UNCHECKED_CAST")
return this.valueNodes.find { it == property } as AbstractPluginData.ValueNode<out T>?
return this.valueNodes.find { it.valueName == property.name } as AbstractPluginData.ValueNode<out T>?
}