From ffbe540800610891107645b2bf9ca4af04fe3a04 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 24 Apr 2022 15:05:53 +0100 Subject: [PATCH] Fix `AbstractPluginData.findBackingFieldValueNode` --- .../backend/mirai-console/src/data/AbstractPluginData.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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