diff --git a/mirai-console/backend/mirai-console/src/data/AbstractPluginData.kt b/mirai-console/backend/mirai-console/src/data/AbstractPluginData.kt index 011b5aeb1..f38d11532 100644 --- a/mirai-console/backend/mirai-console/src/data/AbstractPluginData.kt +++ b/mirai-console/backend/mirai-console/src/data/AbstractPluginData.kt @@ -180,5 +180,5 @@ public fun AbstractPluginData.findBackingFieldValue(propertyValueName: Strin @ConsoleExperimentalApi public fun AbstractPluginData.findBackingFieldValueNode(property: KProperty): AbstractPluginData.ValueNode? { @Suppress("UNCHECKED_CAST") - return this.valueNodes.find { it == property } as AbstractPluginData.ValueNode? + return this.valueNodes.find { it.valueName == property.name } as AbstractPluginData.ValueNode? } \ No newline at end of file