mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 16:40:43 +08:00
Fix AbstractPluginData.findBackingFieldValueNode
This commit is contained in:
parent
45defb32a2
commit
ffbe540800
@ -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>?
|
||||
}
|
Loading…
Reference in New Issue
Block a user